Explorar o código

Remove cache in script

cedric %!s(int64=3) %!d(string=hai) anos
pai
achega
699f2711a9
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      scripts/restore

+ 8 - 0
scripts/restore

@@ -58,6 +58,14 @@ chmod 750 "$final_path"
 chmod -R o-rwx "$final_path"
 chmod -R o-rwx "$final_path"
 chown -R $app:www-data "$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
 # REINSTALL DEPENDENCIES
 #=================================================
 #=================================================