Explorar o código

try pid=$(pgrep -f '/usr/bin/python3 /usr/bin/unattended-upgrade --download-only' || true) to avoid exit 1 pgrep

Mickael-Martin %!s(int64=5) %!d(string=hai) anos
pai
achega
dd213ff00b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/install

+ 1 - 1
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