2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Fix construction of site cpio

It must include directory names in correct
order for it to unpack correctly
This commit is contained in:
Jarrod Johnson 2020-05-22 12:49:33 -04:00
parent 906855ecf7
commit eabf2073c1

View File

@ -88,10 +88,12 @@ def initialize(cmdset):
topack = []
opath = os.getcwd()
os.chdir('/var/lib/confluent/public/site')
for currd, _, files in os.walk('tls'):
topack.append('ssh/')
for currd, _, files in os.walk('ssh'):
for fname in files:
topack.append(os.path.join(currd, fname))
for currd, _, files in os.walk('ssh'):
topack.append('tls/')
for currd, _, files in os.walk('tls'):
for fname in files:
topack.append(os.path.join(currd, fname))
with open(tmpname, 'wb') as initramfs: