1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wallabag2_ynh.git synced 2024-10-01 13:35:06 +02:00

Cleanup cache on change_url

This commit is contained in:
Salamandar 2024-03-15 13:23:41 +01:00 committed by Salamandar
parent 9b717dc446
commit 35b92f0fd3

View file

@ -37,6 +37,11 @@ if [ "$download_images_enabled" = "1" ]; then
<<< "UPDATE entry SET content = REPLACE(content, '$old_domain$old_path', '$new_domain$new_path');" <<< "UPDATE entry SET content = REPLACE(content, '$old_domain$old_path', '$new_domain$new_path');"
fi fi
# Clear assets cache
ynh_secure_remove --file="$install_dir/var/cache"
mkdir "$install_dir/var/cache"
chown "$app:www-data" "$install_dir/var/cache"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================