Browse Source

Detect obnam

Bob Mottram 10 years ago
parent
commit
c598246aab
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      install-freedombone.sh

+ 2
- 2
install-freedombone.sh View File

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