Add remove db.lck in Update Menu

This commit is contained in:
MatMoul 2015-12-18 22:42:21 +01:00
parent 43fba98833
commit fbb90b8604

View file

@ -21,6 +21,8 @@ options+=("" "")
options+=("Edit pacman.conf" "") options+=("Edit pacman.conf" "")
options+=("Edit mirrorlist" "") options+=("Edit mirrorlist" "")
options+=("" "") options+=("" "")
options+=("Remove db.lck" "rm /var/lib/pacman/db.lck")
options+=("" "")
if [ "$aurhelper" = "1" ]; then if [ "$aurhelper" = "1" ]; then
if [ ! -f /usr/bin/yaourt ]; then if [ ! -f /usr/bin/yaourt ]; then
options+=("Install yaourt" "") options+=("Install yaourt" "")
@ -75,6 +77,7 @@ case $sel in
'Clean') pacman -Sc;; 'Clean') pacman -Sc;;
'Edit pacman.conf') nano /etc/pacman.conf;; 'Edit pacman.conf') nano /etc/pacman.conf;;
'Edit mirrorlist') nano /etc/pacman.d/mirrorlist;; 'Edit mirrorlist') nano /etc/pacman.d/mirrorlist;;
'Remove db.lck') rm /var/lib/pacman/db.lck;;
'Install yaourt') 'Install yaourt')
if(confirm "Yaourt allow you to access the AUR applications.\nBecause is not possible to compile applications as root,\nthis installer create an aurbuilder user.\n\nInstall yaourt ?") then if(confirm "Yaourt allow you to access the AUR applications.\nBecause is not possible to compile applications as root,\nthis installer create an aurbuilder user.\n\nInstall yaourt ?") then
clear clear