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:
parent
9b717dc446
commit
35b92f0fd3
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue