remove 775 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. # See comments in install script
  3. app=$YNH_APP_INSTANCE_NAME
  4. # Source YunoHost helpers
  5. source /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 nginx configuration file
  11. sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
  12. ### PHP (remove if not used) ###
  13. # If a dedicated php-fpm process is used:
  14. # sudo rm -f /etc/php5/fpm/pool.d/$app.conf
  15. # sudo service php5-fpm reload
  16. ### PHP end ###
  17. ### MySQL (remove if not used) ###
  18. # If a MySQL database is used:
  19. # # Drop MySQL database and user
  20. # dbname=$app
  21. # dbuser=$app
  22. # ynh_mysql_drop_db "$dbname" || true
  23. # ynh_mysql_drop_user "$dbuser" || true
  24. ### MySQL end ###
  25. # Reload nginx service
  26. sudo service nginx reload