Exit if any APT processes runs
This commit is contained in:
parent
e522d78cb0
commit
0505db5082
|
@ -208,6 +208,7 @@ main() { # {{{
|
|||
| cut -d"'" -f2 )"
|
||||
|
||||
maco_proc_pattern="(/opt/maco/bin/maco.autoupdate.sh)"
|
||||
apt_proc_pattern="(aptitude.*full-upgrade|/usr/bin/dpkg.*--configure|dpkg-deb|/bin/sh /usr/lib/needrestart/dpkg-status)"
|
||||
|
||||
## If APT package upgrade is available
|
||||
### Exit (wait for APT upgrade to finish first)
|
||||
|
@ -234,6 +235,11 @@ main() { # {{{
|
|||
is_proc_running "${maco_proc_pattern}" \
|
||||
&& exit 0
|
||||
|
||||
## If anything related to APT is currently running
|
||||
### Exit
|
||||
is_proc_running "${apt_proc_pattern}" \
|
||||
&& exit 0
|
||||
|
||||
}
|
||||
# }}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue