In order to be able to run the ISO command on command line it is helpful
that the script does not go into background halfway through the process.
We should rather start it as a background job straight from the CGI
script.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
local filename="/var/ipfire/backup/${NOW}.ipf"
if make_backup "${filename}"; then
- /usr/local/bin/backupiso "${NOW}" &
+ /usr/local/bin/backupiso "${NOW}"
fi
;;
} elsif ( $cgiparams{'BACKUPLOGS'} eq "exclude" ) {
&General::system("/usr/local/bin/backupctrl", "exclude");
} elsif ( $cgiparams{'BACKUPLOGS'} eq "iso" ) {
- &General::system("/usr/local/bin/backupctrl", "iso");
+ &General::system_background("/usr/local/bin/backupctrl", "iso");
}
}
if ( $cgiparams{'ACTION'} eq "addonbackup" )