Browse Source

Reorder MYSQL DATABASE REMOVE before DEPENDENCIES REMOVE if using other DATABASE system

yalh76 5 năm trước cách đây
mục cha
commit
29d27f85f9
1 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 6 6
      scripts/remove

+ 6 - 6
scripts/remove

@@ -42,18 +42,18 @@ fi
 ynh_remove_systemd_config
 
 #=================================================
-# REMOVE DEPENDENCIES
+# REMOVE THE MYSQL DATABASE
 #=================================================
 
-# Remove metapackage and its dependencies
-ynh_remove_app_dependencies
+# Remove a database if it exists, along with the associated user
+ynh_mysql_remove_db $db_user $db_name
 
 #=================================================
-# REMOVE THE MYSQL DATABASE
+# REMOVE DEPENDENCIES
 #=================================================
 
-# Remove a database if it exists, along with the associated user
-ynh_mysql_remove_db $db_user $db_name
+# Remove metapackage and its dependencies
+ynh_remove_app_dependencies
 
 #=================================================
 # REMOVE APP MAIN DIR