Subversion Repositories wimsdev

Rev

Rev 8375 | Rev 10121 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8375 Rev 8509
Line 37... Line 37...
37
Please first install Apache (>=1.3).
37
Please first install Apache (>=1.3).
38
 
38
 
39
@
39
@
40
 exit
40
 exit
41
fi
41
fi
-
 
42
[ -f /etc/apache2/envvars ] && . /etc/apache2/envvars
42
conffile=`$httpdname -V | grep SERVER_CONFIG_FILE | awk -F'=' '{print $2}'  | tr -d ' "'`
43
conffile=`$httpdname -V | grep SERVER_CONFIG_FILE | awk -F'=' '{print $2}'  | tr -d ' "'`
43
confdir=`dirname $conffile`
44
confdir=`dirname $conffile`
44
if [ -z "$confdir" ]; then
45
if [ -z "$confdir" ]; then
45
 cat <<@
46
 cat <<@
46
 
47
 
Line 50... Line 51...
50
@
51
@
51
 exit
52
 exit
52
fi
53
fi
53
 
54
 
54
case $distro in
55
case $distro in
-
 
56
 debian) if [ `lsb_release -c | cut -f2` = "trusty" ];then
-
 
57
           conffile=$confdir/conf-enabled/wims.conf
-
 
58
         else
55
 debian) conffile=$confdir/conf.d/wims.conf
59
           conffile=$confdir/conf.d/wims.conf
-
 
60
         fi
56
 
61
 
57
 ;;
62
 ;;
58
esac
63
esac
59
 
64
 
60
cd `dirname $0`/..
65
cd `dirname $0`/..
61
wimshome=`pwd`
66
wimshome=`pwd`
Line 92... Line 97...
92
  endl="WIMS definitions end. Do not alter this line"
97
  endl="WIMS definitions end. Do not alter this line"
93
 
98
 
94
case $distro in
99
case $distro in
95
 debian) rm -f $tmpfile
100
 debian) rm -f $tmpfile
96
 ;;
101
 ;;
97
 *) awk 'BEGIN {a=1}; 
102
 *) awk 'BEGIN {a=1};
98
	/'"$startl"'/ {a=0};
103
	/'"$startl"'/ {a=0};
99
	a==1 {print};
104
	a==1 {print};
100
	/'"$endl"'/ {a=1};' $conffile >$tmpfile
105
	/'"$endl"'/ {a=1};' $conffile >$tmpfile
101
 ;;
106
 ;;
102
esac
107
esac