diff --git a/scripts/install b/scripts/install index d9d1f43..f3e8a95 100644 --- a/scripts/install +++ b/scripts/install @@ -127,8 +127,8 @@ fi sudo yunohost app ssowatconf # Reload Nginx and regenerate SSOwat conf -sudo service php5-fpm restart -sudo service nginx reload +sudo systemctl reload php5-fpm +sudo systemctl reload nginx # clean hosts sudo sed -i '/#SPIP/d' /etc/hosts \ No newline at end of file diff --git a/scripts/remove b/scripts/remove index 45eb184..95e828e 100644 --- a/scripts/remove +++ b/scripts/remove @@ -29,6 +29,6 @@ sudo rm -f "/etc/php5/fpm/conf.d/20-${app}.ini" [[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf" # Reload services -sudo service php5-fpm restart -sudo service nginx reload +sudo systemctl reload php5-fpm +sudo systemctl reload nginx sudo yunohost app ssowatconf \ No newline at end of file diff --git a/scripts/restore b/scripts/restore index b46af7c..f9faed7 100644 --- a/scripts/restore +++ b/scripts/restore @@ -66,6 +66,6 @@ sudo cp -a ./php-fpm.conf "${phpfpm_conf}" sudo cp -a ./php-fpm.ini "${phpfpm_ini}" # Reload services -sudo service nginx reload -sudo service php5-fpm reload +sudo systemctl reload php5-fpm +sudo systemctl reload nginx sudo yunohost app ssowatconf diff --git a/scripts/upgrade b/scripts/upgrade index 738333f..8c70892 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,5 +1,4 @@ -sudo service php5-fpm restart -sudo yunohost app ssowatconf#!/bin/bash +#!/bin/bash # Exit on command errors and treat unset variables as an error set -eu @@ -57,6 +56,6 @@ then fi # Reload Nginx -sudo service nginx reload -sudo service php5-fpm restart +sudo systemctl reload php5-fpm +sudo systemctl reload nginx sudo yunohost app ssowatconf \ No newline at end of file