1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00

Systemectl à la place de service

This commit is contained in:
magikcypress 2017-03-26 16:26:55 +02:00
parent 2182868942
commit 0a4fcc5495
4 changed files with 9 additions and 10 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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