mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
23 lines
468 B
Bash
Executable file
23 lines
468 B
Bash
Executable file
#!/bin/bash
|
|
|
|
#set -e
|
|
|
|
app=duniter
|
|
domain=$(sudo yunohost app setting $app domain)
|
|
port=$(sudo yunohost app setting $app port)
|
|
|
|
# Remove Duniter
|
|
source ~/.bashrc
|
|
$app stop
|
|
#rm -Rf $DUNITER_DIR
|
|
#rm -Rf /home/admin/.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
|