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:
parent
2a09e31afa
commit
197f9369f4
3 changed files with 11 additions and 9 deletions
|
@ -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 service nginx reload
|
||||
}
|
||||
|
||||
|
||||
REMOVE_DUNITER () {
|
||||
# Stop duniter daemon
|
||||
sudo duniter stop
|
||||
|
||||
# Remove Duniter package
|
||||
sudo dpkg -r duniter
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue