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:
parent
197f9369f4
commit
2d4040a9cf
1 changed files with 5 additions and 3 deletions
|
@ -46,10 +46,12 @@ sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
|
|||
sudo service nginx reload
|
||||
}
|
||||
|
||||
|
||||
REMOVE_DUNITER () {
|
||||
# Stop duniter daemon
|
||||
sudo duniter stop
|
||||
# Stop duniter daemon if running
|
||||
sudo duniter status
|
||||
if [ `echo "$?"` == 0 ]; then
|
||||
sudo duniter stop
|
||||
fi
|
||||
|
||||
# Remove Duniter package
|
||||
sudo dpkg -r duniter
|
||||
|
|
Loading…
Reference in a new issue