1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

[fix] #21: stop daemon only when running.

This commit is contained in:
Moul 2017-03-31 11:36:28 +02:00
parent 197f9369f4
commit 2d4040a9cf

View file

@ -46,10 +46,12 @@ sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
sudo service nginx reload sudo service nginx reload
} }
REMOVE_DUNITER () { REMOVE_DUNITER () {
# Stop duniter daemon # Stop duniter daemon if running
sudo duniter stop sudo duniter status
if [ `echo "$?"` == 0 ]; then
sudo duniter stop
fi
# Remove Duniter package # Remove Duniter package
sudo dpkg -r duniter sudo dpkg -r duniter