1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

use ynh_secure_remove instead of rm

This commit is contained in:
OniriCorpe 2024-02-22 04:12:33 +01:00
parent d579e034a1
commit c44d265434

View file

@ -17,7 +17,7 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
ynh_restore_file --origin_path="$install_dir"
if [ -f "$install_dir/daemon.pid" ]; then rm "$install_dir/daemon.pid"; fi
if [ -f "$install_dir/daemon.pid" ]; then ynh_secure_remove --file="$install_dir/daemon.pid"; fi
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"