Fix _upload

- Modify jkey permission
This commit is contained in:
Letian 2022-04-16 17:58:31 +01:00 committed by Jittor
parent 8e703b83b1
commit 9b50f6370c
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ def _upload(path, url, jk):
jkey = flags.cache_path+"/_jkey"
with open(jkey, 'w') as f:
f.write(jk)
assert os.system(f"chmod 600 \"{jkey}\"") == 0
assert os.system(f"s""c""p"+f" -i \"{jkey}\" \"{path}\" jittor" "@" "166" f".111.68.30:Documents/jittor-blog/assets{suffix}") == 0
assert os.system(f"s""s""h"f" -i \"{jkey}\" jittor" "@" "166" ".111.68.30 Documents/jittor-blog.git/hooks/post-update") == 0