backup: Fork ISO job into the background in CGI script

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>
This commit is contained in:
Michael Tremer
2021-12-02 12:37:15 +00:00
committed by Peter Müller
parent 51ed815f5e
commit 45a5df5a5e
2 changed files with 2 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ if ( $cgiparams{'ACTION'} eq "backup" )
} 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" )