Add copy step for Freight conf to avoid permissions error

This commit is contained in:
mycognosist 2020-12-04 09:20:41 +00:00
parent 0abda0b46b
commit f438e6b8ed
1 changed files with 2 additions and 1 deletions

View File

@ -78,13 +78,14 @@ if args.initialize:
print("[ CONFIGURING FREIGHT ]")
render_template(
src="debian_repo/freight.conf",
dest=FREIGHT_CONF,
dest="/tmp",
template_vars={
"freight_lib_path": FREIGHT_LIB,
"freight_cache_path": FREIGHT_CACHE,
"gpg_key_email": GPG_KEY_EMAIL
}
)
subprocess.call(["sudo", "cp", "/tmp/freight.conf", FREIGHT_CONF])
print("[ PULLING MICROSERVICES CODE FROM GITHUB ]")
for service in SERVICES: