mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +00:00
Have osdeploy -p enable tftp
This makes the procedure shorter.
This commit is contained in:
parent
fa934ce334
commit
d204eedb76
@ -56,7 +56,12 @@ def install_tftp_content():
|
||||
tftplocation = cand
|
||||
break
|
||||
if not tftplocation:
|
||||
raise Exception('Unable to detect an installed tftp location')
|
||||
raise Exception('Unable to detect an installed tftp location (check that tftp server is installed)')
|
||||
if os.path.exists('/usr/lib/systemd/system/tftp.socket'):
|
||||
subprocess.check_call(['systemctl', 'enable', 'tftp.socket', '--now'])
|
||||
else:
|
||||
print(
|
||||
'Unable to automatically enable TFTP server, please enable manually')
|
||||
tftplocation = '{0}/confluent/x86_64'.format(tftplocation)
|
||||
try:
|
||||
os.makedirs(tftplocation)
|
||||
|
Loading…
Reference in New Issue
Block a user