1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/umami_ynh.git synced 2024-10-01 13:34:50 +02:00

Use ynh_secure_remove

This commit is contained in:
orhtej2 2023-09-23 01:39:46 +02:00
parent 095365ec38
commit 9c251d34b5

View file

@ -43,8 +43,9 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
if $(ynh_compare_current_package_version --comparison le --version "2.6.2~ynh4")
then
# Purge old root directory's contents
ynh_script_progression --message="Removing old files..." --weight=2
rm -rf $install_dir/{*,.[!.]*}
ynh_secure_remove --file="$install_dir"
fi
if [[ "$upgrade_type" == "UPGRADE_APP" || $(ynh_compare_current_package_version --comparison le --version "2.6.2~ynh4") ]]; then