Sfoglia il codice sorgente

remove old folders

Mickael-Martin 7 anni fa
parent
commit
8dacf0e940
1 ha cambiato i file con 2 aggiunte e 9 eliminazioni
  1. 2 9
      scripts/remove

+ 2 - 9
scripts/remove

@@ -57,9 +57,9 @@ ynh_remove_fpm_config
 timeout 5 systemctl stop zabbix-server
 systemctl disable zabbix-server
 killall zabbix_server
-#rm -fr /etc/zabbix
-#rm -fr /var/www/zabbix
 ynh_package_autopurge --allow-change-held-packages zabbix-server-mysql zabbix-frontend-php ynhzabbix-ynh-deps zabbix-release ynhzabbix-ynh-deps
+ynh_secure_remove /var/www/zabbix
+ynh_secure_remove /var/log/ynhzabbix
 
 #=================================================
 # REMOVE THE MYSQL DATABASE
@@ -68,13 +68,6 @@ ynh_package_autopurge --allow-change-held-packages zabbix-server-mysql zabbix-fr
 # Remove a database if it exists, along with the associated user
 ynh_mysql_remove_db $db_user $db_name
 
-#=================================================
-# REMOVE APP MAIN DIR
-#=================================================
-
-# Remove the app directory securely
-#ynh_secure_remove "$final_path"
-
 #=================================================
 # REMOVE NGINX CONFIGURATION
 #=================================================