From a0fefc5041f83088a34ec40c2479dac2158183e9 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Mon, 21 Sep 2026 12:04:17 +0100 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E7=8B=AC=E7=AB=8B=E9=9D=99=E6=80=81?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E7=9B=AE=E5=BD=95=E8=AE=BE=E7=BD=AE=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy.py b/deploy.py index a3ff4b9..d3ddc16 100644 --- a/deploy.py +++ b/deploy.py @@ -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):