]> git.pld-linux.org Git - packages/dchub.git/blame - dchub-init.patch
- missing dir
[packages/dchub.git] / dchub-init.patch
CommitLineData
23d08351
AA
1diff -Nur old/dchub.init.in new/dchub.init.in
2--- old/dchub.init.in 2003-10-19 15:32:52.000000000 +0000
3+++ new/dchub.init.in 2003-12-13 00:52:30.000000000 +0000
4@@ -43,32 +43,17 @@
5
6 OPTIONS="--UID=$DCHUB_UID --conf=$DCHUB_XMLCONFFILE --user=$DCHUB_XMLUSERFILE --hubpasswd=$DCHUB_HUBPASSFILE --crc=$DCHUB_CRCFILE --pscriptdir=$DCHUB_SCRIPTDIR --pscriptinit=$DCHUB_MAINSCRIPT --exprogdir=$DCHUB_EXTPROGDIR --logfile=$DCHUB_LOGFILE"
7
8-#
9-# Determine which kind of configuration we're using
10-#
11-system=unknown
12-if [ -f /etc/debian_version ]; then
13- system=debian
14-elif [ -f /etc/redhat-release ]; then
15- system=redhat
16-else
17- echo "$0: Unknown system, please report on http://savannah.nongnu.org/support/?group=dchub" 1>&2
18- exit 1
19-fi
20-
21-if [ $system = redhat ]; then
22- # Source function library.
23- . $initdir/functions
24-
25- # Source networking configuration.
26- . /etc/sysconfig/network
27-
28- # Check that networking is up.
29- [ ${NETWORKING} = "no" ] && exit 0
30-
31- # Pull in sysconfig settings
32- [ -f /etc/sysconfig/dchub ] && . /etc/sysconfig/dchub
33-fi
34+# Source function library.
35+. $initdir/functions
36+
37+# Source networking configuration.
38+. /etc/sysconfig/network
39+
40+# Check that networking is up.
41+[ ${NETWORKING} = "no" ] && exit 0
42+
43+# Pull in sysconfig settings
44+[ -f /etc/sysconfig/dchub ] && . /etc/sysconfig/dchub
45
46 [ -x "$DCHUB" ] || exit 0
47 [ -d "$DCHUB_DBDIR" ] || exit 0
This page took 0.061352 seconds and 4 git commands to generate.