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:
parent
ca91e10941
commit
3b940b6194
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user