Browse Source

fixed master config filename

Wolfgang Ortmann 9 years ago
parent
commit
081f404176
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/kind.ag
  2. 1 1
      src/kind.cpp

+ 2 - 2
src/kind.ag

@@ -79,7 +79,7 @@ void readMasterConfig(const string& fn, KindConfig& conf)
   if (!fn.empty())  // master config given by user on commandline
     readMasterConfig1(fn, conf);
   else if (fileExists("/etc/kind/master.conf"))
-    readMasterConfig1("etc/kind/master.conf", conf);
+    readMasterConfig1("/etc/kind/master.conf", conf);
   else if (fileExists("/ffp/etc/kind/master.conf"))
     readMasterConfig1("/ffp/etc/kind/master.conf", conf);
   else
@@ -353,7 +353,7 @@ void backupVault(const string& vault,
               //  cout << vault << " " << st << " || " << sc << endl;
             }
           else
-            throw Exception("Backup", "Failed to execute rsync");
+            throw Exception("Backup", "Failed to execute rsync (result: " + to_string(rc)+")");
         }
       else
         cout << "Not executing " << rsyncCmd << endl;

+ 1 - 1
src/kind.cpp

@@ -717,7 +717,7 @@ void backupVault(const string& vault,
 # 355 "kind.ag"
           else
 # 356 "kind.ag"
-            throw Exception("Backup", "Failed to execute rsync");
+            throw Exception("Backup", "Failed to execute rsync (result: " + to_string(rc)+")");
 # 357 "kind.ag"
         }
 # 358 "kind.ag"