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

View file

@ -113,6 +113,12 @@ export BORG_BASE_DIR
# Preparation # 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 if [ -e $CLIENT_RUNFILE ] && ps -p $(cat $CLIENT_RUNFILE) > /dev/null
then then
echo "Another backup instance is running. Skipping" echo "Another backup instance is running. Skipping"