Loading deploy/pyinfra/lib/operations/meep.py +1 −0 Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ def install(mec_sandbox_dir, target_home, node_version): # Fix ownership since Pyinfra runs this with sudo and vendoring creates root-owned files target_user = target_home.split('/')[-1] # Extracts 'user' from /home/<user> yield StringCommand(f"chown -R {target_user}:{target_user} {mec_sandbox_dir}/go-apps/meepctl") yield StringCommand(f"chown -R {target_user}:{target_user} {target_home}/gocode || true") @operation() def configure(ip, gitdir, target_home, node_version): Loading Loading
deploy/pyinfra/lib/operations/meep.py +1 −0 Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ def install(mec_sandbox_dir, target_home, node_version): # Fix ownership since Pyinfra runs this with sudo and vendoring creates root-owned files target_user = target_home.split('/')[-1] # Extracts 'user' from /home/<user> yield StringCommand(f"chown -R {target_user}:{target_user} {mec_sandbox_dir}/go-apps/meepctl") yield StringCommand(f"chown -R {target_user}:{target_user} {target_home}/gocode || true") @operation() def configure(ip, gitdir, target_home, node_version): Loading