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:
parent
93cce95b00
commit
486f748a67
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd"
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||||
|
|
||||||
if [ -d "$install_dir/logs" ]; then
|
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"
|
mv "$install_dir/logs" "/var/log/$app"
|
||||||
ln -s "/var/log/$app" "$install_dir/logs"
|
ln -s "/var/log/$app" "$install_dir/logs"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue