mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
5dc34890eb
- [fix] do not move in /twp directory. Manage Debian package from current directory. - [enh] add 'set -eu' in install and update scripts. Remove it from remove script.
24 lines
504 B
Bash
Executable file
24 lines
504 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Source app helpers
|
|
source /usr/share/yunohost/helpers
|
|
|
|
app=duniter
|
|
domain=$(ynh_app_setting_get $app domain)
|
|
port=$(ynh_app_setting_get $app port)
|
|
|
|
# Remove Duniter
|
|
sudo $app stop
|
|
sudo dpkg -r $app
|
|
#rm -Rf $DUNITER_DIR
|
|
#rm -Rf /root/.config/$app/
|
|
|
|
# Remove Duniter service to YunoHost monitoring
|
|
sudo yunohost service remove $app
|
|
|
|
# Remove proxy_pass
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
|
sudo service nginx reload
|
|
|
|
# Close opened port
|
|
sudo yunohost firewall disallow TCP $port
|