Commit e3c8a25f authored by Muhammad Umair Khan's avatar Muhammad Umair Khan
Browse files

Bug Fix: Ownership was being changed after installation of meepctl

parent eaa9303a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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):