Remove output of "ipsecctrl R".
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 10 May 2010 19:33:51 +0000 (21:33 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 10 May 2010 19:33:51 +0000 (21:33 +0200)
:

html/cgi-bin/vpnmain.cgi
src/misc-progs/ipsecctrl.c

index 0294b1c..6af5ed4 100644 (file)
@@ -582,7 +582,7 @@ END
     $cahash{$key}[1] = &Header::cleanhtml(getsubjectfromcert ("${General::swroot}/ca/$cgiparams{'CA_NAME'}cert.pem"));
     &General::writehasharray("${General::swroot}/vpn/caconfig", \%cahash);
 
-    my $temp = `/usr/local/bin/ipsecctrl R`;
+    system('/usr/local/bin/ipsecctrl', 'R');
     sleep $sleepDelay;
 
     UPLOADCA_ERROR:
index aa6b8a4..aa0f41c 100644 (file)
@@ -198,7 +198,7 @@ int main(int argc, char *argv[]) {
                 }
 
                 if (strcmp(argv[1], "R") == 0) {
-                        safe_system("/usr/sbin/ipsec whack --rereadall");
+                        safe_system("/usr/sbin/ipsec whack --rereadall >/dev/null");
                         exit(0);
                 }