mirror of
https://github.com/YunoHost-Apps/linuxdash_ynh.git
synced 2024-09-03 19:36:07 +02:00
19 lines
486 B
Bash
Executable file
19 lines
486 B
Bash
Executable file
#!/bin/bash
|
|
|
|
app=linuxdash
|
|
domain=$(sudo yunohost app setting $app domain)
|
|
|
|
# Remove sources and nginx configuration
|
|
sudo rm -rf /var/www/$app
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
|
# Remove service
|
|
sudo supervisorctl stop $app
|
|
sudo rm -f /etc/supervisor/conf.d/$app.conf
|
|
|
|
# Remove supervisor package
|
|
# Need to be manage with future manifest/moulinette Debian package management
|
|
# sudo apt-get -y -qq remove supervisor
|
|
|
|
# Reload nginx configuration
|
|
sudo service nginx reload
|