summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakgw
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-07-29 13:41:42 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-07-29 13:41:42 +0000
commit2fee59643be4d8f962f970a7dd7988ab9b8dd1f4 (patch)
tree9fd8f8b11e3fb63e7d786a561eeead37160959cd /perl-install/standalone/drakgw
parentf63e28d2c82b6d7d1daa1961eccb63c83f46c901 (diff)
downloaddrakx-backup-do-not-use-2fee59643be4d8f962f970a7dd7988ab9b8dd1f4.tar
drakx-backup-do-not-use-2fee59643be4d8f962f970a7dd7988ab9b8dd1f4.tar.gz
drakx-backup-do-not-use-2fee59643be4d8f962f970a7dd7988ab9b8dd1f4.tar.bz2
drakx-backup-do-not-use-2fee59643be4d8f962f970a7dd7988ab9b8dd1f4.tar.xz
drakx-backup-do-not-use-2fee59643be4d8f962f970a7dd7988ab9b8dd1f4.zip
standalone tools are *not* chrooted
Diffstat (limited to 'perl-install/standalone/drakgw')
-rwxr-xr-xperl-install/standalone/drakgw4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/drakgw b/perl-install/standalone/drakgw
index 3e7997208..00e700a02 100755
--- a/perl-install/standalone/drakgw
+++ b/perl-install/standalone/drakgw
@@ -139,7 +139,7 @@ What would you like to do?"),
substInFile {
s/#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE/REDIRECT\tloc\t$squid_port\ttcp\twww\t-\nACCEPT\tfw\tnet\ttcp\twww\n#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE/;
} "/etc/shorewall/rules";
- run_program::rooted($::prefix, 'chkconfig', '--add', 'shorewall');
+ run_program::run('chkconfig', '--add', 'shorewall');
run_program::run('service', '>', '/dev/null', 'shorewall', 'restart') if $::isStandalone;
}
log::l("[drakgw] Enabled");
@@ -586,7 +586,7 @@ print "add rules entries\n";
substInFile {
s/#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE/REDIRECT\tloc\t$squid_port\ttcp\twww\t-\nACCEPT\tfw\tnet\ttcp\twww\n#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE/;
} "/etc/shorewall/rules";
-run_program::rooted($::prefix, 'chkconfig', '--add', 'shorewall');
+run_program::run('chkconfig', '--add', 'shorewall');
run_program::run('service', '>', '/dev/null', 'shorewall', 'restart') if $::isStandalone;
#- bye-bye message