Skip to content

Commit abec04f

Browse files
committed
Fixed: FS#1098 - Improve 2 init script.
1 parent 28bf89b commit abec04f

File tree

5 files changed

+52
-5
lines changed

5 files changed

+52
-5
lines changed

docs/INSTALL_DEBIAN_5.0_courier_mydns.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,17 @@ vi /etc/init.d/mydns
186186
# Based upon skeleton 1.9.4 by Miquel van Smoorenburg
187187
# <miquels@cistron.nl> and Ian Murdock <imurdock@gnu.ai.mit.edu>.
188188
#
189+
### BEGIN INIT INFO
190+
# Provides: MyDNS
191+
# Required-Start: $syslog
192+
# Should-Start:
193+
# Required-Stop:
194+
# Should-Stop:
195+
# Default-Start: 2 3 4 5
196+
# Default-Stop: 0 1 6
197+
# Short-Description: MyDNS Server
198+
# Description: MyDNS DNS Server
199+
### END INIT INFO
189200

190201
set -e
191202

docs/INSTALL_DEBIAN_6.0_courier_mydns.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,17 @@ vi /etc/init.d/mydns
203203
# Based upon skeleton 1.9.4 by Miquel van Smoorenburg
204204
# <miquels@cistron.nl> and Ian Murdock <imurdock@gnu.ai.mit.edu>.
205205
#
206+
### BEGIN INIT INFO
207+
# Provides: MyDNS
208+
# Required-Start: $syslog
209+
# Should-Start:
210+
# Required-Stop:
211+
# Should-Stop:
212+
# Default-Start: 2 3 4 5
213+
# Default-Stop: 0 1 6
214+
# Short-Description: MyDNS Server
215+
# Description: MyDNS DNS Server
216+
### END INIT INFO
206217

207218
set -e
208219

docs/INSTALL_UBUNTU_8.10.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,17 @@ and enter the following lines (between the "---"-lines):
169169
# Based upon skeleton 1.9.4 by Miquel van Smoorenburg
170170
# <miquels@cistron.nl> and Ian Murdock <imurdock@gnu.ai.mit.edu>.
171171
#
172+
### BEGIN INIT INFO
173+
# Provides: MyDNS
174+
# Required-Start: $syslog
175+
# Should-Start:
176+
# Required-Stop:
177+
# Should-Stop:
178+
# Default-Start: 2 3 4 5
179+
# Default-Stop: 0 1 6
180+
# Short-Description: MyDNS Server
181+
# Description: MyDNS DNS Server
182+
### END INIT INFO
172183

173184
set -e
174185

install/apps/bastille-firewall

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,23 @@
4141
#
4242
# ** As of 0.99-beta1, this script merely kicks off the real script,
4343
# either /sbin/bastille-ipchains or /sbin/bastille-netfilter
44-
44+
#
4545
# Default is to use the 'ipchains' script, which will load the
4646
# ipchains compatibility module if you're using a 2.4 kernel
47+
#
48+
### BEGIN INIT INFO
49+
# Provides: Bastille-Firewall
50+
# Required-Start: $syslog
51+
# Should-Start:
52+
# Required-Stop:
53+
# Should-Stop:
54+
# Default-Start: 2 3 4 5
55+
# Default-Stop: 0 1 6
56+
# Short-Description: Bastille Firewall
57+
# Description: Bastille Firewall for iptables and ipchains
58+
### END INIT INFO
59+
60+
4761
REALSCRIPT=/sbin/bastille-ipchains
4862
PATH=/sbin:/bin:/usr/sbin:/usr/bin
4963

interface/web/dns/dns_wizard.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@
138138
if(isset($_POST['ns2']) && $_POST['ns2'] == '') $error .= $app->lng('error_ns2_empty').'<br />';
139139
if(isset($_POST['email']) && $_POST['email'] == '') $error .= $app->lng('error_email_empty').'<br />';
140140

141-
if(!preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',$_POST['domain'])) $error .= $app->lng('error_domain_regex').'<br />';
142-
if(!preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',$_POST['ns1'])) $error .= $app->lng('error_ns1_regex').'<br />';
143-
if(!preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',$_POST['ns2'])) $error .= $app->lng('error_ns2_regex').'<br />';
144-
if(!preg_match('/^\w+[\w.-]*\w+@\w+[\w.-]*\w+\.[a-z]{2,10}$/i',$_POST['email'])) $error .= $app->lng('error_email_regex').'<br />';
141+
if(isset($_POST['domain']) && !preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',$_POST['domain'])) $error .= $app->lng('error_domain_regex').'<br />';
142+
if(isset($_POST['ns1']) && !preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',$_POST['ns1'])) $error .= $app->lng('error_ns1_regex').'<br />';
143+
if(isset($_POST['ns2']) && !preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',$_POST['ns2'])) $error .= $app->lng('error_ns2_regex').'<br />';
144+
if(isset($_POST['email']) && !preg_match('/^\w+[\w.-]*\w+@\w+[\w.-]*\w+\.[a-z]{2,10}$/i',$_POST['email'])) $error .= $app->lng('error_email_regex').'<br />';
145145

146146
// make sure that the record belongs to the clinet group and not the admin group when a dmin inserts it
147147
if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($_POST['client_group_id'])) {

0 commit comments

Comments
 (0)