Fixes in scripts for fedora

This commit is contained in:
absurdo 2022-10-26 12:57:06 +02:00
parent d54f94379b
commit 4914a1f0e7
8 changed files with 77 additions and 17 deletions

View file

@ -30,3 +30,9 @@ elif linux_distro=='debian':
if call(update_command, shell=True) > 0:
print('Error, cannot upgrade server...')
exit(1)
elif linux_distro=='rocky' or linux_distro=='fedora':
if call("sudo dnf upgrade -y", shell=True) > 0:
print('Error, cannot upgrade server...')
exit(1)