Fix regression in manage_apache

This commit is contained in:
absurdo 2023-12-01 17:53:40 +01:00
parent 1ff962b2ae
commit 092a4ee969

View file

@ -67,7 +67,7 @@ def manage():
if linux_distro!='debian' and linux_distro!='ubuntu': if linux_distro!='debian' and linux_distro!='ubuntu':
apache_cmd='httpd' apache_cmd='httpd'
apachectl='apachectl' apachectl='apachectl'
if linux_distro=='rocky' or linux_distro=='fedora': if linux_distro=='rocky' or linux_distro=='fedora' or linux_distro=='almalinux':
apache_group='apache' apache_group='apache'
if linux_distro=='arch': if linux_distro=='arch':
@ -400,11 +400,11 @@ def manage():
else: else:
"""
if call("sudo usermod -a -G %s %s" % (apache_group, args.user), shell=True) > 0: if call("sudo usermod -a -G %s %s" % (apache_group, args.user), shell=True) > 0:
print('Error, cannot add group to user') print('Error, cannot add group to user')
exit(1) exit(1)
"""
# Add ssh key for diverses uses # Add ssh key for diverses uses
print("Adding ssh key for user...") print("Adding ssh key for user...")