|
|
|
@ -2,7 +2,7 @@ |
|
|
|
# --- T2-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# T2 SDE: target/mnemosyne/pkg_apache.conf |
|
|
|
# T2 SDE: target/mnemosyne2/pkg_conf/apache.conf |
|
|
|
# Copyright (C) 2004 - 2005 The T2 SDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
@ -12,6 +12,7 @@ |
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# --- T2-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
if [ "${SDECFG_PKG_APACHE_DOCROOT:0:1}" == "/" ]; then |
|
|
|
docroot=$( echo "$SDECFG_PKG_APACHE_DOCROOT" | sed -e 's,/\([^/]*\).*,\1,g' ) |
|
|
|
if [ -z "$( echo $flistroot | tr ' ' '\n' | grep -e "^$docroot\$" )" ]; then |
|
|
|
@ -22,6 +23,7 @@ if [ "${SDECFG_PKG_APACHE_DOCROOT:0:1}" == "/" ]; then |
|
|
|
fi |
|
|
|
|
|
|
|
hook_add postmake 5 'mnemosyne_adapt_apache' |
|
|
|
|
|
|
|
mnemosyne_adapt_apache() { |
|
|
|
mkdir -vp $sysconfdir/{conf,hosts}.d |
|
|
|
|
|
|
|
@ -36,5 +38,3 @@ mnemosyne_adapt_apache() { |
|
|
|
Include $sysconfdir/hosts.d/*.conf |
|
|
|
EOT |
|
|
|
} |
|
|
|
|
|
|
|
. $confdir/apache.conf |