diff --git a/scripts/remove b/scripts/remove index 4c6335b..09109f1 100644 --- a/scripts/remove +++ b/scripts/remove @@ -11,16 +11,6 @@ app=$YNH_APP_INSTANCE_NAME # Retrieve app settings domain=$(ynh_app_setting_get "$app" domain) -with_mysql=$(ynh_app_setting_get "$app" with_mysql) - -# Drop MySQL database and user as needed -if [[ $with_mysql -eq 1 ]]; then - dbname=$app - dbuser=$app - dbpass=$(ynh_app_setting_get "$app" mysqlpwd) - ynh_mysql_drop_db $dbname || true - ynh_mysql_drop_user $dbuser || true -fi # Delete app directory and configurations sudo rm -rf "/var/www/${app}" diff --git a/scripts/restore b/scripts/restore index 97137e4..498ed22 100644 --- a/scripts/restore +++ b/scripts/restore @@ -55,4 +55,4 @@ sudo cp -a ./php-fpm.ini "$phpfpm_ini" # Reload services sudo service php5-fpm reload -sudo service nginx reload \ No newline at end of file +sudo service nginx reload