Fixed bugs to create servers
This commit is contained in:
parent
92ae8e7d36
commit
44ffe2da55
5 changed files with 144 additions and 8 deletions
|
|
@ -115,7 +115,9 @@ if linux_distro=='arch':
|
|||
|
||||
if linux_distro=='rocky' or linux_distro=='almalinux' or linux_distro=='fedora':
|
||||
|
||||
if linux.shell_command('sudo systemctl status firewalld'):
|
||||
ret=linux.shell_command('sudo systemctl status firewalld')
|
||||
print(ret)
|
||||
if ret:
|
||||
|
||||
linux.shell_command("sudo firewall-cmd --add-service=http && sudo firewall-cmd --add-service=http --permanent && sudo firewall-cmd --add-service=https && sudo firewall-cmd --add-service=https --permanent")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue