|
@@ -85,9 +85,8 @@ def sync(token):
|
|
|
if not allow_path(path):
|
|
|
return 'The path is not allow access',403
|
|
|
# 执行命令
|
|
|
- tmp = runcmd(cmd, path) + '\n\n'
|
|
|
+ tmp = runcmd(cmd, path)
|
|
|
# 更改权限
|
|
|
- tmp += runcmd('chown -R {user}:{user} *'.format(user=user), path)
|
|
|
#显示结果
|
|
|
showchar ='name: {name}\nsyndir is: {syndir}\n\n{tmp}\n'.format(
|
|
|
name=name,syndir=syndir,tmp=tmp)
|