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

systemctl à la place de service

This commit is contained in:
magikcypress 2017-03-29 00:08:07 +02:00
parent 17b2c64faf
commit 1826fee4b2

View file

@ -141,7 +141,7 @@ REMOVE_NGINX_CONF () { # Delete nginx configuration
if [ -e "/etc/nginx/conf.d/$domain.d/$app.conf" ]; then # Delete nginx config
echo "Delete nginx config"
sudo rm "/etc/nginx/conf.d/$domain.d/$app.conf"
sudo service nginx reload
sudo systemctl reload nginx
fi
}
@ -154,7 +154,7 @@ REMOVE_FPM_CONF () { # Delete pool php-fpm configuration
echo "Delete php config"
sudo rm "/etc/php5/fpm/conf.d/20-$app.ini"
fi
sudo service php5-fpm reload
sudo systemctl reload php5-fpm
}
REMOVE_LOGROTATE_CONF () { # Delete logrotate configuration