12345678910111213141516171819202122232425 |
- #!/bin/bash
- set -eu
- app=$YNH_APP_INSTANCE_NAME
- # Source YunoHost helpers
- . /usr/share/yunohost/helpers
- # Retrieve app settings
- domain=$(ynh_app_setting_get "$app" domain)
- # Remove sources
- sudo rm -Rf /opt/$app
- # Remove configuration files
- sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
- sudo service $app stop
- sudo killall $app
- sudo yunohost service remove $app
- sudo rm -f /etc/systemd/system/$app.service
- sudo systemctl daemon-reload
- sudo service nginx reload
- sudo yunohost app ssowatconf
- sudo userdel $app
|