Skip to content
Snippets Groups Projects
Unverified Commit 4117dee6 authored by David Beniamine's avatar David Beniamine
Browse files

Restart apache2 in a safe way

parent 9a94008c
No related branches found
No related tags found
No related merge requests found
...@@ -140,6 +140,7 @@ sed \ ...@@ -140,6 +140,7 @@ sed \
/etc/apache2/ssl.conf /etc/apache2/ssl.conf
a2ensite dolibarr-ssl.conf a2ensite dolibarr-ssl.conf
apachectl configtest && apachectl restart || echo "Failed restartin apache"
echo "cd ${SCRIPT_DIRECTORY}" echo "cd ${SCRIPT_DIRECTORY}"
cd ${SCRIPT_DIRECTORY} cd ${SCRIPT_DIRECTORY}
...@@ -307,8 +307,8 @@ echo "a2enmod ssl : terminated" ...@@ -307,8 +307,8 @@ echo "a2enmod ssl : terminated"
a2enmod ssl a2enmod ssl
a2ensite nextcloud-ssl a2ensite nextcloud-ssl
echo "service apache2 restart" echo "apachectl restart"
service apache2 restart apachectl configtest && apachectl restart || echo "Failed restartin apache"
echo "Warning: ssl isn't properly activated, please run certbot then uncomment the contents of /etc/apache2/ssl.conf" echo "Warning: ssl isn't properly activated, please run certbot then uncomment the contents of /etc/apache2/ssl.conf"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment