]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/backup.cgi
corrected mpfire stream url
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / backup.cgi
index 3c59ef62233cde17ee3ab305b05b08541c44440a..2d84b70b68104c8a33ce01630f0f7464d1fc65d8 100644 (file)
@@ -21,8 +21,8 @@
 
 use strict;
 # enable only the following on debugging purpose
-#use warnings;
-#use CGI::Carp 'fatalsToBrowser';
+use warnings;
+use CGI::Carp 'fatalsToBrowser';
 use File::Copy;
 
 require '/var/ipfire/general-functions.pl';
@@ -48,6 +48,11 @@ $cgiparams{'BACKUPLOGS'} = '';
 
 &Header::getcgihash(\%cgiparams);
 
+############################################################################################################################
+################################################ Workaround for Directories ################################################
+
+system("/usr/local/bin/backupctrl makedirs >/dev/null 2>&1 ") unless ( -e '/var/ipfire/backup/addons');
+
 ############################################################################################################################
 ############################################## System calls ohne Http Header ###############################################