remove 515 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. set -eu
  3. app=$YNH_APP_INSTANCE_NAME
  4. # Source YunoHost helpers
  5. . /usr/share/yunohost/helpers
  6. # Retrieve app settings
  7. domain=$(ynh_app_setting_get "$app" domain)
  8. # Remove sources
  9. sudo rm -Rf /opt/$app
  10. # Remove configuration files
  11. sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
  12. sudo service $app stop
  13. sudo killall $app
  14. sudo yunohost service remove $app
  15. sudo rm -f /etc/systemd/system/$app.service
  16. sudo systemctl daemon-reload
  17. sudo service nginx reload
  18. sudo yunohost app ssowatconf
  19. sudo userdel $app