changed using fuser to lsof to determine if dpkg is busy

This commit is contained in:
vladimir.kuznetsov 2023-03-26 11:15:22 +03:00
parent 298e1e2e72
commit 02881c4409
2 changed files with 6 additions and 5 deletions

View file

@ -1,4 +1,4 @@
pm_apt="/usr/bin/apt-get";\
if [[ -f "$pm_apt" ]]; then pm=$pm_apt; else exit; fi;\
if [[ ! -f "/usr/bin/sudo" ]]; then $pm update -y -q; $pm install -y -q sudo; fi;\
sudo fuser /var/lib/dpkg/lock-frontend
sudo lsof /var/lib/dpkg/lock-frontend