为独立静态发布目录设置部署用户权限
verify / verify (push) Canceled after 0s

This commit is contained in:
fam
2026-09-21 12:04:17 +01:00
parent f1586d240e
commit a0fefc5041
+2
View File
@@ -25,6 +25,8 @@ def main():
current = next(v for v in volumes if v['name']=='site')
previous = current['hostPath']['path']
assert previous == '/var/gnoc/hugo-public' or previous.startswith('/var/gnoc/site-releases/'), 'Unexpected production mount'
owner = ssh('id','-un',capture=True).strip()
ssh('sudo','install','-d','-m','0755','-o',owner,'/var/gnoc/site-releases')
ssh('mkdir','-p',target)
run('rsync','-az','--chmod=D755,F644',str(ROOT/'public')+'/',f'{HOST}:{target}/')
def point(path):