mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
update: improve check for apt (#1356)
fix check for running apt during update (https://github.com/nextcloud/nextcloudpi/issues/1354) Update script is exiting if any process contains 'apt' in the name. pgrep interpretes <pattern> as regular expression. Whole process name to be checked with option -x.
This commit is contained in:
parent
31f20bcb25
commit
7c361c5cb4
@ -52,8 +52,8 @@ samba
|
||||
"
|
||||
fi
|
||||
|
||||
# check running apt
|
||||
pgrep apt &>/dev/null && { echo "apt is currently running. Try again later"; exit 1; }
|
||||
# check running apt or apt-get
|
||||
pgrep -x "apt|apt-get" &>/dev/null && { echo "apt is currently running. Try again later"; exit 1; }
|
||||
|
||||
cp etc/library.sh /usr/local/etc/
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user