remove 661 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. # See comments in install script
  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 /var/www/$app
  10. # Remove configuration files
  11. sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
  12. # If a dedicated php-fpm process is used:
  13. #
  14. # sudo rm -f /etc/php5/fpm/pool.d/$app.conf
  15. # sudo service php5-fpm reload
  16. # If a MySQL database is used:
  17. #
  18. # # Drop MySQL database and user
  19. # dbname=$app
  20. # dbuser=$app
  21. # ynh_mysql_drop_db "$dbname" || true
  22. # ynh_mysql_drop_user "$dbuser" || true
  23. # Restart services
  24. sudo service nginx reload