Add sudo for apt update
This commit is contained in:
parent
2e2d2fc5b2
commit
ce4a25395c
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue