]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Pakete lassen sich nun definitv per Webinterface installieren.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Mon, 9 Jul 2007 20:37:46 +0000 (20:37 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Mon, 9 Jul 2007 20:37:46 +0000 (20:37 +0000)
Backup-Tool mal direkt gefixt.

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@667 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

html/cgi-bin/pakfire.cgi
lfs/backup

index 478a490661423e68e01ae395dfb0521d9f66905b..c9d9db8ba0d78cd70ac05aff07f1252c4b9e1d33 100644 (file)
@@ -38,14 +38,16 @@ $pakfiresettings{'UUID'} = 'on';
 &Header::openbigbox('100%', 'left', '', $errormessage);
 
 if ($pakfiresettings{'ACTION'} eq 'install'){
+       $pakfiresettings{'INSPAKS'} =~ s/\|/\ /g;
        if ("$pakfiresettings{'FORCE'}" eq "on") {
-               system("/usr/local/bin/pakfire", "install", "--non-interactive", "$pakfiresettings{'INSPAKS'}", "&");
-               sleep(1);
+               my $command = "/usr/local/bin/pakfire install --non-interactive $pakfiresettings{'INSPAKS'} &>/dev/null &";
+               system("$command");
+               sleep(2);
        } else {
                &Header::openbox("100%", "center", "Abfrage");
                my @output = `/usr/local/bin/pakfire resolvedeps $pakfiresettings{'INSPAKS'}`;
                print <<END;
-               <table><tr><td colspan='2'>Sie maechten folgende Pakete installieren: $pakfiresettings{'INSPAKS'}. Moeglicherweise haben diese Pakete Abhaengigkeiten, d.h. andere Pakete muessen zusaetzlich installiert werden. Dazu sehen sie unten eine Liste.
+               <table><tr><td colspan='2'>Sie maechten folgende Pakete installieren: "$pakfiresettings{'INSPAKS'}". Moeglicherweise haben diese Pakete Abhaengigkeiten, d.h. andere Pakete muessen zusaetzlich installiert werden. Dazu sehen sie unten eine Liste.
                <pre>           
 END
                foreach (@output) {
@@ -200,7 +202,7 @@ print <<END;
                                        <td width='10%' align="left"><input type="checkbox" name="AUTOUPDATE" $checked{'AUTOUPDATE'}{'on'} />
                                        <td width='40%' align="right">Registrierung am Master-Server: 
                                        <td width='10%' align="left"><input type="checkbox" name="UUID" $checked{'UUID'}{'on'} />
-                       <tr><td width='100%' colspan="4" align="right"><input type="submit" name="ACTION" value="$Lang::tr{'save'}" />                                  
+                       <tr><td width='100%' colspan="4" align="right"><input type="submit" name="ACTION" value="$Lang::tr{'save'}" />
                </table>
        </form>
 END
index 30db794019d3c276bbe028d75c90254827193338..35258ac8189c459d37a9a50fa7d28a106ffca63e 100644 (file)
@@ -34,16 +34,14 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = backup
 PAK_VER    = 1
 
-DESCDE     = "In Backup sind alle notwendigen Dateien für das Backup des IPFire enthalten"
-DESCEN     = "Backup contains all Files necessary for backup the IPFire"
-DEPS       = "backup"
+DESCDE     = "Im Paket Backup sind alle notwendigen Dateien für das Backup des IPFire enthalten."
+DESCEN     = "Backup contains all the files that are necessary for backing up the IPFire."
+DEPS       = ""
 
 ###############################################################################
 # Top-level Rules
 ###############################################################################
 
-objects =
-
 install : $(TARGET)
 
 check :