소스 검색

remove old folders

Mickael-Martin 7 년 전
부모
커밋
8dacf0e940
1개의 변경된 파일2개의 추가작업 그리고 9개의 파일을 삭제
  1. 2 9
      scripts/remove

+ 2 - 9
scripts/remove

@@ -57,9 +57,9 @@ ynh_remove_fpm_config
 timeout 5 systemctl stop zabbix-server
 timeout 5 systemctl stop zabbix-server
 systemctl disable zabbix-server
 systemctl disable zabbix-server
 killall 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_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
 # 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
 # Remove a database if it exists, along with the associated user
 ynh_mysql_remove_db $db_user $db_name
 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
 # REMOVE NGINX CONFIGURATION
 #=================================================
 #=================================================