Line
Link Here
|
0 |
-- webapp-apache.eclass.orig 2003-08-07 17:31:32.000000000 +0100 |
0 |
++ webapp-apache.eclass 2003-08-07 17:48:52.000000000 +0100 |
Lines 34-39
Link Here
|
34 |
fi |
34 |
fi |
35 |
APACHECONF="/etc/apache${CONFVER}/conf/apache${CONFVER}.conf" |
35 |
APACHECONF="/etc/apache${CONFVER}/conf/apache${CONFVER}.conf" |
|
|
36 |
APACHECONF_COMMON="/etc/apache${CONFVER}/conf/commonapache${CONFVER}.conf" |
37 |
APACHECONF_DIR="/etc/apache${CONFVER}/conf/" |
36 |
WEBAPP_SERVER="Apache v${APACHEVER}" |
38 |
WEBAPP_SERVER="Apache v${APACHEVER}" |
37 |
} |
39 |
} |
Lines 43-48
Link Here
|
43 |
webapp-apache-detect || return 1 |
45 |
webapp-apache-detect || return 1 |
44 |
webapp-determine-installowner |
46 |
webapp-determine-installowner |
45 |
webapp-determine-htdocsdir |
47 |
webapp-determine-htdocsdir |
|
|
48 |
webapp-determine-cgibindir |
46 |
} |
49 |
} |
47 |
function webapp-determine-htdocsdir () |
50 |
function webapp-determine-htdocsdir () |
Lines 50-61
Link Here
|
50 |
webapp-determine-installowner |
53 |
webapp-determine-installowner |
51 |
HTTPD_ROOT="`grep '^DocumentRoot' ${APACHECONF} | cut -d ' ' -f 2`" |
54 |
HTTPD_ROOT="`grep '^DocumentRoot' ${APACHECONF} | cut -d ' ' -f 2`" |
52 |
[ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs" |
55 |
[ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs/" |
53 |
keepdir "$HTTPD_ROOT" |
56 |
keepdir "$HTTPD_ROOT" |
54 |
fowners "$HTTPD_USER"."$HTTPD_GROUP" "$HTTPD_ROOT" |
57 |
fowners "$HTTPD_USER"."$HTTPD_GROUP" "$HTTPD_ROOT" |
55 |
fperms 755 "$HTTPD_ROOT" |
58 |
fperms 755 "$HTTPD_ROOT" |
56 |
} |
59 |
} |
|
|
60 |
function webapp-determine-cgibindir () |
61 |
{ |
62 |
HTTPD_CGIBIN="`grep 'ScriptAlias /cgi-bin/' ${APACHECONF_COMMON} | cut -d ' ' -f 7`" |
63 |
[ -z "${HTTPD_CGIBIN}" ] && HTTPD_CGIBIN="/home/httpd/cgi-bin/" |
64 |
} |
65 |
|
57 |
function webapp-determine-installowner () |
66 |
function webapp-determine-installowner () |
58 |
{ |
67 |
{ |
59 |
HTTPD_USER="apache" |
68 |
HTTPD_USER="apache" |