From 73a557aa1df27f2a5dda1576f5496b5f04d37b2b Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Sun, 11 Jul 2021 19:26:21 +0200 Subject: [PATCH] Fix: Upgrade script --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 1a59141..c2bb727 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -244,7 +244,7 @@ if [ -n $(ynh_app_setting_get --app="$app" --key=port) ]; then fi # If old service exsits; remove it -if [ -n $(cat /etc/yunohost/services.yml | grep "$app:") ]; then +if grep -q "$app:" "/etc/yunohost/services.yml"; then yunohost service remove "$app" fi