Add sudo for apt update

This commit is contained in:
mycognosist 2020-12-04 08:39:12 +00:00
parent 2e2d2fc5b2
commit ce4a25395c
2 changed files with 1 additions and 3 deletions

View File

@ -45,7 +45,7 @@ cargo_path = os.path.join(USER_PATH, ".cargo/bin/cargo")
if args.initialize:
print("[ INSTALLING SYSTEM REQUIREMENTS ]")
subprocess.call(["apt-get", "install", "git", "nginx", "curl", "build-essential", "gcc-aarch64-linux-gnu", ])
subprocess.call(["sudo", "apt-get", "install", "git", "nginx", "curl", "build-essential", "gcc-aarch64-linux-gnu", ])
print("[ CREATING DIRECTORIES ]")
folders = [MICROSERVICES_SRC_DIR, FREIGHT_CACHE, FREIGHT_LIB]

View File

@ -25,5 +25,3 @@ def render_template(src, dest, template_vars=None):
os.remove(dest)
with open(dest, 'w') as f:
f.write(output_text)