From c24d13169f6c9a94ce9d614c07f524a53cdd0683 Mon Sep 17 00:00:00 2001 From: rodinux Date: Fri, 29 Dec 2023 16:23:41 +0100 Subject: [PATCH] conditions for keep configs if needed --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 34f3c4e..3d2f360 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -54,7 +54,7 @@ if [ -f "$install_dir/data/config.local.user.php" ]; then ynh_secure_remove "$install_dir/data/config.local.user.php" fi -if [ -f "$install_dir/data/data" ]; then +if [ -d "$install_dir/data/data" ]; then ynh_secure_remove "$install_dir/data/data" fi