[enh] Avoid bad deletion

Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
ljf (zamentur) 2021-09-08 15:43:50 +02:00 committed by GitHub
parent 33505bff5f
commit df20a54013
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,7 @@ _ynh_app_config_apply() {
if [[ "${!short_setting}" == "" ]]
then
ynh_backup_if_checksum_is_different --file="$bind_file"
rm -f "$bind_file"
ynh_secure_remove --file="$bind_file"
ynh_delete_file_checksum --file="$bind_file" --update_only
ynh_print_info "File '$bind_file' removed"
else