1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kimai2_ynh.git synced 2024-09-03 19:26:26 +02:00

Update upgrade

Use ynh_secure_remove
This commit is contained in:
CodeShakingSheep 2024-01-14 23:59:23 +01:00 committed by GitHub
parent f1e69bad66
commit baf9273c53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,8 +120,8 @@ if ynh_compare_current_package_version --comparison le --version 1.30.0~ynh1
then
ynh_script_progression --message="Doing a hard cache flush for major Kimai 2 update from version 1.x to 2.x"
# https://www.kimai.org/documentation/updates.html
rm -r "$final_path/var/cache/*"
rm -r "$final_path/var/plugins/*"
ynh_secure_remove --file="$final_path/var/cache/*"
ynh_secure_remove --file="$final_path/var/plugins/*"
fi
chmod 750 "$final_path"