changeset 143:3b904b49ce57

Check for missing configuration file for slbackup.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 Aug 2017 16:31:19 +0300
parents 36c9cb759326
children 75a4faa219a9
files slbackup.php
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/slbackup.php	Thu Aug 24 15:44:33 2017 +0300
+++ b/slbackup.php	Thu Aug 24 16:31:19 2017 +0300
@@ -20,6 +20,11 @@
 
 if (file_exists($configFile))
   require_once $configFile;
+else
+{
+  error_log("SyntilistaBackup: Configuration file '".$configFile."' does not exist!");
+  exit;
+}
 
 
 //