Skip to content

Commit

Permalink
Explain why pacwall fails when the DB is locked.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharacternyk committed Dec 3, 2020
1 parent 8ac65a1 commit 0cffca2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/fetchupdates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ set -e
FAKEDB=$1
PACMANDB=$2

# Complain if db.lck exists.
[[ -f $FAKEDB/db.lck ]] &&
printf "%s\n%s\n" \
"Looks like pacwall is already running." \
"If you are sure that it isn't the case, delete $PWD/$FAKEDB/db.lck"

# Create a fake db directory for pacman.
mkdir -p "$FAKEDB/sync"

Expand Down

0 comments on commit 0cffca2

Please sign in to comment.