mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 19:10:10 +00:00
Fix tar generation of site
site content was nat being correctly packed to tgz.
This commit is contained in:
parent
3b940b6194
commit
d4f46a53e0
@ -136,11 +136,11 @@ def initialize(cmdset):
|
||||
if res:
|
||||
sys.stderr.write('Error occurred while packing site initramfs')
|
||||
sys.exit(1)
|
||||
os.rename(tmpname, '/var/lib/confluent/public/site/initramfs.cpio')
|
||||
tmptarname = tmpname.replace('cpio', 'tgz')
|
||||
tarcmd = ['tar', '--transform=s|^|etc/', '-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')
|
||||
os.rename(tmptarname, '/var/lib/confluent/public/site/initramfs.tgz')
|
||||
if cmdset.k:
|
||||
with open('/etc/ssh/ssh_known_hosts', 'a+b') as skh:
|
||||
|
Loading…
Reference in New Issue
Block a user