From 0a4fcc54956a571a7e78c552276b434a287c6742 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sun, 26 Mar 2017 16:26:55 +0200 Subject: [PATCH] =?UTF-8?q?Systemectl=20=C3=A0=20la=20place=20de=20service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install | 4 ++-- scripts/remove | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 7 +++---- 4 files changed, 9 insertions(+), 10 deletions(-) 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