Verify the presence of the borg executable.

This commit is contained in:
Geoffrey Frogeye 2020-02-04 07:06:34 +01:00
parent 989e38e24a
commit 97ff057d3f
Signed by: geoffrey
GPG Key ID: D8A7ECA00A8CD3DD
1 changed files with 6 additions and 0 deletions

View File

@ -113,6 +113,12 @@ export BORG_BASE_DIR
# Preparation
#
if [ -z $BORG_EXECUTABLE ]
then
echo "Borg executable not found."
exit 1
fi
if [ -e $CLIENT_RUNFILE ] && ps -p $(cat $CLIENT_RUNFILE) > /dev/null
then
echo "Another backup instance is running. Skipping"