From d9303437a9ccfdead1e3417e45d08fdaab329197 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Thu, 5 Sep 2024 18:20:02 +0200 Subject: [PATCH] Added script for manage mod_md --- scripts/install_apache.py | 4 ++++ tasks/apache/apache/install_apache.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install_apache.py b/scripts/install_apache.py index a8b656f..8414dd0 100644 --- a/scripts/install_apache.py +++ b/scripts/install_apache.py @@ -129,6 +129,10 @@ if linux_distro=='rocky' or linux_distro=='almalinux' or linux_distro=='fedora': else: print('Not firewalld detected...') +# Copy file + +linux.shell_command('sudo cp modules/apache/scripts/check_mod_md.py /usr/local/bin && sudo chmod 755 /usr/local/bin/check_mod_md.py') + #Restart apache linux_service={'debian' : 'apache2', 'ubuntu' : 'apache2', 'fedora' : 'httpd', 'almalinux' : 'httpd', 'rocky' : 'httpd', 'arch' : 'httpd'} diff --git a/tasks/apache/apache/install_apache.py b/tasks/apache/apache/install_apache.py index 1e119ea..06a9682 100644 --- a/tasks/apache/apache/install_apache.py +++ b/tasks/apache/apache/install_apache.py @@ -28,7 +28,7 @@ class ServerTask(Task): #['modules/webservers/scripts/install_quota_home.py', 0o700], - self.files=[['modules/apache/scripts/install_apache.py', 0o700]] + self.files=[['modules/apache/scripts/install_apache.py', 0o700], ['modules/apache/scripts/check_mod_md.py', 0o700]] #self.commands_to_execute=[]