]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Ein altes Script...
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 7 Oct 2007 20:31:01 +0000 (20:31 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 7 Oct 2007 20:31:01 +0000 (20:31 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@952 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

config/rootfiles/common/stage2
src/scripts/setreservedports [deleted file]

index c4f92168b099b413e604acbc792a816149589bea..15f1ba99f0eaaa4542421d6d5a8661a77cfa4ae9 100644 (file)
@@ -65,7 +65,6 @@ usr/local/bin/readhash
 usr/local/bin/run-parts
 usr/local/bin/scanhd
 usr/local/bin/setddns.pl
-usr/local/bin/setreservedports
 usr/local/bin/settime
 usr/local/bin/timecheck
 usr/local/bin/vpn-watch
diff --git a/src/scripts/setreservedports b/src/scripts/setreservedports
deleted file mode 100644 (file)
index 1b53079..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-#
-# $Id: setreservedports,v 1.1.2.3 2005/09/07 21:38:50 eoberlander Exp $
-# Change https server port only at this time,
-# it will be integrate in web interface later
-# suggested port for https interface could be 5445
-
-SSH=222
-
-if [ $# -lt 1 ]; then
-       echo "Give an https port number, recommended value is non-assigned port 5445"
-else
-       if [ "$1" -lt "444" -o "$1" -gt "65535" ]; then
-               echo "support only a port value from 445 to 65535"
-               echo "recommended value is non-assigned port 5445"
-       else
-               HTTPS=$1
-               /bin/sed -i -e "s+# TCP 67,68,81.*$+# TCP 67,68,81,$SSH,$HTTPS+" \
-               -e "s+my @tcp_reserved = (81.*$+my @tcp_reserved = (81,$SSH,$HTTPS);+" \
-               /home/httpd/cgi-bin/portfw.cgi
-               
-               # only the second Listen only has {3,5} digits if the first is 81
-               /bin/sed -i -e "+s+Listen [0-9]\{3,5\}$+Listen $HTTPS+" \
-               -e "s+<VirtualHost _default_.*$+<VirtualHost _default_:$HTTPS>+" \
-               /etc/httpd/conf/httpd.conf
-               
-               /bin/sed -i -e "s+:[0-9]\{3,5\}/\$ENV{'PATH_INFO'}+:$HTTPS/\$ENV{'PATH_INFO'}+" \
-               /var/ipfire/header.pl
-               
-               /bin/sed -i -e "s+acl IPFire_https port.*$+acl IPCop_https port $HTTPS+" \
-               /var/ipfire/proxy/acl
-               /bin/chown nobody:nobody /var/ipfire/proxy/acl
-               
-               /bin/sed -i -e "s+acl IPFire_https port.*$+acl IPCop_https port $HTTPS+" \
-               /var/ipfire/proxy/squid.conf
-               /bin/chown nobody:nobody /var/ipfire/proxy/squid.conf
-               
-               # restart everything impacted
-               /bin/killall httpd
-               sleep 2
-               /usr/sbin/httpd
-               /usr/local/bin/restartsquid
-               /usr/bin/logger -s -p local0.info "$0 :https port shift to $HTTPS"
-       fi
-fi