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

Merge pull request #46 from YunoHost-Apps/fix_21_dont_stop_daemon_when_not_running

Dont stop daemon when not running
This commit is contained in:
M5oul 2017-04-06 20:31:44 +02:00 committed by GitHub
commit 49552c1357
3 changed files with 13 additions and 9 deletions

View file

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

View file

@ -10,9 +10,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)
port=$(ynh_app_setting_get $app port)
# Remove Duniter
sudo duniter stop
sudo dpkg -r duniter
REMOVE_DUNITER
# Remove data and conf
sudo rm -rf /root/.conf/duniter

View file

@ -15,12 +15,7 @@ arch=$(ynh_app_setting_get "$app" arch)
admin=$(ynh_app_setting_get "$app" admin)
is_cesium_public=$(ynh_app_setting_get "$app" is_cesium_public)
# Stop duniter daemon
sudo duniter stop
# Remove Duniter package
sudo dpkg -r duniter
REMOVE_DUNITER
INSTALL_DUNITER_DEBIAN_PACKAGE
# Start duniter daemon