diff --git a/scripts/manage_apache.py b/scripts/manage_apache.py index 1417c05..ce5d569 100644 --- a/scripts/manage_apache.py +++ b/scripts/manage_apache.py @@ -67,7 +67,7 @@ def manage(): if linux_distro!='debian' and linux_distro!='ubuntu': apache_cmd='httpd' 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' if linux_distro=='arch': @@ -400,11 +400,11 @@ def manage(): else: - """ + if call("sudo usermod -a -G %s %s" % (apache_group, args.user), shell=True) > 0: print('Error, cannot add group to user') exit(1) - """ + # Add ssh key for diverses uses print("Adding ssh key for user...")