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

View File

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