1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grav_ynh.git synced 2024-09-03 19:16:01 +02:00

systemctl à la place de service

This commit is contained in:
magikcypress 2017-03-26 16:29:13 +02:00
parent 41db2e2da8
commit e01eec04a5
4 changed files with 9 additions and 7 deletions

View file

@ -79,8 +79,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
# Nettoyer hosts
sudo sed -i '/#GRAV/d' /etc/hosts

View file

@ -19,5 +19,5 @@ 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 || true
sudo service nginx reload || true
sudo systemctl reload php5-fpm
sudo systemctl reload nginx

View file

@ -55,6 +55,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

@ -50,4 +50,6 @@ then
fi
# Reload Nginx
sudo service nginx reload || true
sudo systemctl reload php5-fpm
sudo systemctl reload nginx
sudo yunohost app ssowatconf