mirror of
https://github.com/YunoHost-Apps/zabbix_ynh.git
synced 2024-09-03 20:36:14 +02:00
try pid=$(pgrep -f '/usr/bin/python3 /usr/bin/unattended-upgrade --download-only' || true) to avoid exit 1 pgrep
This commit is contained in:
parent
e66bfd6340
commit
dd213ff00b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue