From 092a4ee969934768019ed9cd3234d4ef8f7e5a2e Mon Sep 17 00:00:00 2001 From: absurdo Date: Fri, 1 Dec 2023 17:53:40 +0100 Subject: [PATCH] Fix regression in manage_apache --- scripts/manage_apache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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...")