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

[mod] move as a f() daemon stop and debian pkg removal.

This commit is contained in:
Moul 2017-03-31 11:33:59 +02:00
parent 2a09e31afa
commit 197f9369f4
3 changed files with 11 additions and 9 deletions

View file

@ -45,3 +45,12 @@ sudo sed -i "s@YNH_EXAMPLE_DOMAIN@$domain@" $nginx_conf
sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
sudo service nginx reload sudo service nginx reload
} }
REMOVE_DUNITER () {
# Stop duniter daemon
sudo duniter stop
# 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) domain=$(ynh_app_setting_get $app domain)
port=$(ynh_app_setting_get $app port) port=$(ynh_app_setting_get $app port)
# Remove Duniter REMOVE_DUNITER
sudo duniter stop
sudo dpkg -r duniter
# Remove data and conf # Remove data and conf
sudo rm -rf /root/.conf/duniter 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) admin=$(ynh_app_setting_get "$app" admin)
is_cesium_public=$(ynh_app_setting_get "$app" is_cesium_public) is_cesium_public=$(ynh_app_setting_get "$app" is_cesium_public)
# Stop duniter daemon REMOVE_DUNITER
sudo duniter stop
# Remove Duniter package
sudo dpkg -r duniter
INSTALL_DUNITER_DEBIAN_PACKAGE INSTALL_DUNITER_DEBIAN_PACKAGE
# Start duniter daemon # Start duniter daemon