From 0b0e6d586bc327dfa5f2b8752e8066a92655a5e7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 17 May 2021 19:48:26 +0100 Subject: [PATCH] fwhosts.cgi: Use new system methods Signed-off-by: Michael Tremer --- html/cgi-bin/fwhosts.cgi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/html/cgi-bin/fwhosts.cgi b/html/cgi-bin/fwhosts.cgi index 84b0184594..35611ac087 100644 --- a/html/cgi-bin/fwhosts.cgi +++ b/html/cgi-bin/fwhosts.cgi @@ -75,12 +75,12 @@ my $fwoptions = "${General::swroot}/optionsfw/settings"; my $configovpn = "${General::swroot}/ovpn/settings"; my $configipsecrw = "${General::swroot}/vpn/settings"; -unless (-e $confignet) { system("touch $confignet"); } -unless (-e $confighost) { system("touch $confighost"); } -unless (-e $configgrp) { system("touch $configgrp"); } -unless (-e $configsrv) { system("touch $configsrv"); } -unless (-e $configsrvgrp) { system("touch $configsrvgrp"); } -unless (-e $configlocationgrp) { system("touch $configlocationgrp"); } +unless (-e $confignet) { &General::system("touch", "$confignet"); } +unless (-e $confighost) { &General::system("touch", "$confighost"); } +unless (-e $configgrp) { &General::system("touch", "$configgrp"); } +unless (-e $configsrv) { &General::system("touch", "$configsrv"); } +unless (-e $configsrvgrp) { &General::system("touch", "$configsrvgrp"); } +unless (-e $configlocationgrp) { &General::system("touch $configlocationgrp"); } &General::readhash("${General::swroot}/main/settings", \%mainsettings); &General::readhash("/srv/web/ipfire/html/themes/ipfire/include/colors.txt", \%color); -- 2.39.5