From 18439cc934c1e15acab44f88819f8433f28caaf6 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 3 Dec 2020 13:12:12 +0100 Subject: [PATCH] Fixed non starting services --- CoreModules/apache/conf.sh | 3 ++- CoreModules/nginx/conf.sh | 3 ++- CoreModules/nginx_nonphp/conf.sh | 3 ++- SubModules/php-fpm/conf.sh | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CoreModules/apache/conf.sh b/CoreModules/apache/conf.sh index 0476782..11c7016 100644 --- a/CoreModules/apache/conf.sh +++ b/CoreModules/apache/conf.sh @@ -51,4 +51,5 @@ curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/Scripts/to # custom Welcome page echo "$webserv is functioning normally" > /var/www/html/index.html -systemctl start apache2 > $OUTPUT 2>&1 \ No newline at end of file +systemctl start apache2 > $OUTPUT 2>&1 +systemctl enable apache2 > $OUTPUT 2>&1 \ No newline at end of file diff --git a/CoreModules/nginx/conf.sh b/CoreModules/nginx/conf.sh index f89545a..627fd53 100644 --- a/CoreModules/nginx/conf.sh +++ b/CoreModules/nginx/conf.sh @@ -43,4 +43,5 @@ curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/Scripts/to # custom Welcome page echo "$webserv is functioning normally" > /usr/share/nginx/html/index.html -systemctl start nginx \ No newline at end of file +systemctl start nginx > $OUTPUT 2>&1 +systemctl enable nginx > $OUTPUT 2>&1 \ No newline at end of file diff --git a/CoreModules/nginx_nonphp/conf.sh b/CoreModules/nginx_nonphp/conf.sh index 6809f41..ab4fece 100644 --- a/CoreModules/nginx_nonphp/conf.sh +++ b/CoreModules/nginx_nonphp/conf.sh @@ -28,4 +28,5 @@ sed -i -e 's/DOMAINname/'$domain'/g' /etc/nginx/sites-available/"$sitename"_ssl # custom Welcome page echo "$webserv is functioning normally" > /usr/share/nginx/html/index.html -systemctl start nginx \ No newline at end of file +systemctl start nginx > $OUTPUT 2>&1 +systemctl enable nginx > $OUTPUT 2>&1 \ No newline at end of file diff --git a/SubModules/php-fpm/conf.sh b/SubModules/php-fpm/conf.sh index 3661f28..0cf32c5 100644 --- a/SubModules/php-fpm/conf.sh +++ b/SubModules/php-fpm/conf.sh @@ -14,4 +14,5 @@ sed -i 's/; max_input_vars = 1000/max_input_vars = 10000/g' /etc/php/"$phpver"/f sed -i 's/upload_max_filesize = 2/upload_max_filesize = 128/g' /etc/php/"$phpver"/fpm/php.ini sed -i 's/post_max_size = 8/post_max_size = 64/g' /etc/php/"$phpver"/fpm/php.ini -systemctl start php${phpver}-fpm \ No newline at end of file +systemctl start php${phpver}-fpm +systemctl enable php${phpver}-fpm \ No newline at end of file