瀏覽代碼

with_mysql ne fonctionne pas correctement

magikcypress 8 年之前
父節點
當前提交
89cfdff4da
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      scripts/remove

+ 3 - 3
scripts/remove

@@ -11,16 +11,16 @@ app=$YNH_APP_INSTANCE_NAME
 
 # Retrieve app settings
 domain=$(ynh_app_setting_get "$app" domain)
-with_mysql=$(ynh_app_setting_get "$app" with_mysql)
+# with_mysql=$(ynh_app_setting_get "$app" with_mysql)
 
 # Drop MySQL database and user as needed
-if [[ $with_mysql -eq 1 ]]; then
+#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
+#fi
 
 # Delete app directory and configurations
 sudo rm -rf "/var/www/${app}"