Procházet zdrojové kódy

Remove cache in script

cedric před 3 roky
rodič
revize
699f2711a9
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. 8 0
      scripts/restore

+ 8 - 0
scripts/restore

@@ -58,6 +58,14 @@ chmod 750 "$final_path"
 chmod -R o-rwx "$final_path"
 chown -R $app:www-data "$final_path"
 
+#=================================================
+# REMOVE CACHE MAIN DIR
+#=================================================
+ynh_script_progression --message="Removing cache main directory..." --weight=1
+
+# Remove the app directory securely
+ynh_secure_remove --file="$final_path/var/cache"
+
 #=================================================
 # REINSTALL DEPENDENCIES
 #=================================================