|
Revision 867, 0.7 kB
(checked in by rats, 1 year ago)
|
Deleted: Old SASL vaiables and use of them
small fixes
|
| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
|
|---|
| 3 |
for a in `cat /etc/ispcp/ispcp.conf | grep -E '(APACHE_WWW_DIR|GUI_ROOT_DIR|APACHE_USER|APACHE_GROUP)'| sed -e 's/ //g'` |
|---|
| 4 |
do |
|---|
| 5 |
export $a |
|---|
| 6 |
done |
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
chown ${APACHE_USER}:${APACHE_GROUP} ${GUI_ROOT_DIR}/errordocs/*.html |
|---|
| 10 |
chmod 400 ${GUI_ROOT_DIR}/errordocs/*.html |
|---|
| 11 |
|
|---|
| 12 |
for domain in `ls -1A ${APACHE_WWW_DIR}`; do |
|---|
| 13 |
if [ -d "${APACHE_WWW_DIR}/${domain}" ] ; then |
|---|
| 14 |
echo "${domain}" |
|---|
| 15 |
cp -p ${GUI_ROOT_DIR}/errordocs/404.html ${APACHE_WWW_DIR}/${domain}/errors/ |
|---|
| 16 |
cp -p ${GUI_ROOT_DIR}/errordocs/403.html ${APACHE_WWW_DIR}/${domain}/errors/ |
|---|
| 17 |
cp -p ${GUI_ROOT_DIR}/errordocs/401.html ${APACHE_WWW_DIR}/${domain}/errors/ |
|---|
| 18 |
cp -p ${GUI_ROOT_DIR}/errordocs/500.html ${APACHE_WWW_DIR}/${domain}/errors/ |
|---|
| 19 |
fi |
|---|
| 20 |
done |
|---|