瀏覽代碼

Update remove

try fix remove script
Robles Rodolphe 11 月之前
父節點
當前提交
a77d73c1c4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scripts/remove

+ 2 - 2
scripts/remove

@@ -12,8 +12,6 @@ source /usr/share/yunohost/helpers
 #=================================================
 ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
 
-ynh_exec_warn_less yunohost user delete $zabbix_username --purge
-
 # need remove pinning
 if [ -f "/etc/apt/preferences.d/zabbix_repo" ]; then
 ynh_secure_remove --file="/etc/apt/preferences.d/zabbix_repo"
@@ -46,6 +44,8 @@ ynh_secure_remove --file="/etc/sudoers.d/$app"
 
 ynh_secure_remove --file="/usr/share/zabbix-cli"
 
+ynh_exec_warn_less yunohost user delete $zabbix_username --purge
+
 #=================================================
 # END OF SCRIPT
 #=================================================