1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zusam_ynh.git synced 2024-09-03 18:05:54 +02:00

remove rm from upgrade script and replace with ynh_secure_remove

This commit is contained in:
dragondaddy 2023-09-24 01:12:16 +02:00
parent c3ab997af0
commit 74e7c3efe9

View file

@ -35,7 +35,7 @@ then
ynh_setup_source --dest_dir="$install_dir" --full_replace
if [ -f $install_dir/api/config/packages/sensio_framework_extra.yaml ]
then
rm -f $install_dir/api/config/packages/sensio_framework_extra.yaml
ynh_secure_remove $install_dir/api/config/packages/sensio_framework_extra.yaml
fi
fi
@ -47,7 +47,7 @@ ynh_script_progression --message="Proceeding to migration..."
pushd $install_dir
ynh_script_progression --message="Proceeding to migration..."
rm -rf $install_dir/api/var/cache/
ynh_secure_remove $install_dir/api/var/cache/
php$phpversion api/bin/console doctrine:migration:migrate --no-interaction --allow-no-migration
php$phpversion api/bin/console zusam:migration