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

use ynh_secure_remove

This commit is contained in:
Salamandar 2024-02-05 17:53:46 +01:00
parent 93cce95b00
commit 486f748a67

View file

@ -24,7 +24,7 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd"
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if [ -d "$install_dir/logs" ]; then
rm -rf "/var/log/$app"
ynh_secure_remove --file="/var/log/$app"
mv "$install_dir/logs" "/var/log/$app"
ln -s "/var/log/$app" "$install_dir/logs"
fi