2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-28 03:48:35 +00:00

Rename site contents in tgz

This moves location of site data for esxi
This commit is contained in:
Jarrod Johnson 2020-06-09 16:40:29 -04:00
parent ca91e10941
commit 3b940b6194

View File

@ -137,7 +137,7 @@ def initialize(cmdset):
sys.stderr.write('Error occurred while packing site initramfs')
sys.exit(1)
tmptarname = tmpname.replace('cpio', 'tgz')
tarcmd = ['tar', 'czf', tmptarname] + topack
tarcmd = ['tar', '--transform=s|^|etc/', '-czf', tmptarname] + topack
subprocess.check_call(tarcmd)
os.chdir(opath)
os.rename(tmpname, '/var/lib/confluent/public/site/initramfs.cpio')