yalh76 1 год назад
Родитель
Сommit
a469935597
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      scripts/remove

+ 2 - 3
scripts/remove

@@ -12,6 +12,8 @@ source /usr/share/yunohost/helpers
 #=================================================
 ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
 
+yunohost user delete $zabbix_username --purge
+
 # Remove the dedicated systemd config
 ynh_systemd_action --service_name="$app-server" --action="stop" --log_path="/var/log/$app/${app}_server.log"
 ynh_systemd_action --service_name="$app-agent" --action="stop" --log_path="/var/log/$app/${app}_agent.log"
@@ -30,9 +32,6 @@ ynh_remove_fpm_config
 
 # Remove other various files specific to the app... such as:
 
-yunohost user delete $zabbix_username --purge
-
-# Remove config file detection
 delete_initZabbixConf
 ynh_secure_remove --file="/usr/share/$app"
 ynh_secure_remove --file="/etc/$app"