Browse Source

Update restore

Mickael-Martin 7 năm trước cách đây
mục cha
commit
994d73e2af
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      scripts/restore

+ 2 - 2
scripts/restore

@@ -25,14 +25,14 @@ ynh_abort_if_errors
 ### guaranteed to be unique. This is a good unique identifier to define installation path,
 ### db names, ...
 app="zabbix"
-
+final_path="/var/www/zabbix"
 #=================================================
 # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
 #=================================================
 
 ### If the app uses nginx as web server (written in HTML/PHP in most cases), the final path should be "/var/www/$app".
 ### If the app provides an internal web server (or uses another application server such as uwsgi), the final path should be "/opt/yunohost/$app"
-rm -fr /var/www/zabbix
+rm -fr $final_path
 
 #=================================================
 # STORE SETTINGS FROM MANIFEST