Detect obnam

This commit is contained in:
Bob Mottram 2014-09-29 14:38:44 +01:00
parent fa1e26975b
commit c598246aab
1 changed files with 2 additions and 2 deletions

View File

@ -3167,7 +3167,7 @@ function create_backup_script {
fi
apt-get -y --force-yes install obnam bcrypt
if [ ! -d /etc/obnam ]; then
if [ ! -f /usr/bin/obnam ]; then
echo "ERROR: obnam may not have installed correctly. $CHECK_MESSAGE"
exit 46
fi
@ -3289,7 +3289,7 @@ function create_restore_script {
fi
apt-get -y --force-yes install obnam bcrypt
if [ ! -d /etc/obnam ]; then
if [ ! -f /usr/bin/obnam ]; then
echo 'obnam may not have installed correctly. Check your internet connection, /etc/network/interfaces and /etc/resolv.conf'
exit 47
fi