[enh] create blocks for MySQL and PHP command lines which are optionnals.

This commit is contained in:
Moul
2016-06-14 14:09:29 +02:00
parent bdbe0ac79e
commit daaf1005d5
6 changed files with 23 additions and 17 deletions

View File

@@ -12,21 +12,23 @@ domain=$(ynh_app_setting_get "$app" domain)
# Remove sources
sudo rm -rf /var/www/$app
# Remove configuration files
# Remove nginx configuration file
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
### PHP (remove if not used) ###
# If a dedicated php-fpm process is used:
#
# sudo rm -f /etc/php5/fpm/pool.d/$app.conf
# sudo service php5-fpm reload
### PHP end ###
### MySQL (remove if not used) ###
# If a MySQL database is used:
#
# # Drop MySQL database and user
# dbname=$app
# dbuser=$app
# ynh_mysql_drop_db "$dbname" || true
# ynh_mysql_drop_user "$dbuser" || true
### MySQL end ###
# Reload nginx service
sudo service nginx reload