From dd213ff00bfd8ab64f92e0b2979d489e378232c4 Mon Sep 17 00:00:00 2001 From: Mickael-Martin Date: Thu, 17 Dec 2020 12:57:50 +0100 Subject: [PATCH] try pid=$(pgrep -f '/usr/bin/python3 /usr/bin/unattended-upgrade --download-only' || true) to avoid exit 1 pgrep --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index c284506..1f924ac 100644 --- a/scripts/install +++ b/scripts/install @@ -93,7 +93,7 @@ ynh_app_setting_set "$app" language "$language" ### - As well as the section "REINSTALL DEPENDENCIES" in the restore script ### - And the section "UPGRADE DEPENDENCIES" in the upgrade script -pid=$(pgrep -f '/usr/bin/python3 /usr/bin/unattended-upgrade --download-only') +pid=$(pgrep -f '/usr/bin/python3 /usr/bin/unattended-upgrade --download-only' || true) if [ ! -z "$pid" ] ;then ynh_script_progression --message="Check and wait end of unattended-upgrade of package_check" -w 1 tail --pid=$pid -f /dev/null