浏览代码

Remove cache in script

cedric 3 年之前
父节点
当前提交
699f2711a9
共有 1 个文件被更改,包括 8 次插入0 次删除
  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
 #=================================================