Browse Source

* improved tardiba target, added pkg_lighttpd.conf

git-svn-id: svn+ssh://svn.opensde.net/home/users/karasz/x5/tardiba/trunk@56 471cc25b-571d-0410-8e29-1f4f9b506cef
master
Nagy Karoly Gabriel 17 years ago
parent
commit
4f03f18919
1 changed files with 33 additions and 0 deletions
  1. +33
    -0
      pkg_lighttpd.conf

+ 33
- 0
pkg_lighttpd.conf

@ -0,0 +1,33 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/tardiba/pkg_lighttpd.conf
# Copyright (C) 2007 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
. $confdir/lighttpd.conf
. $base/target/mnemosyne/pkg_conf/lighttpd.conf
lighttpd_tardibaconf() {
tardibadocroot=$localstatedir/document-root
mkdir -p $tardibadocroot/vhost/
sed -e "s,^server.document-root =\ \"/var/empty\",server.document-root\t=\ \"$tardibadocroot\"," \
-e "s,^#simple-vhost.server-root .*,simple-vhost.server-root\t=\ \"$tardibadocroot/vhost\"," \
-e "s,^#simple-vhost.document-root .*,simple-vhost.document-root\t=\ \"/pages/\"," \
-e "s,^#.*\"mod_fastcgi\",\t\t\t\t\"mod_fastcgi\","\
-e "s,^#.*\"mod_simple_vhost\",\t\t\t\t\"mod_simple_vhost\","\
$root$sysconfdir/lighttpd.conf-dist > $root$sysconfdir/lighttpd.conf
ln -svnf /etc/opt/lighttpd/lighttpd /service/lighttpd
}
hook_add postmake 7 "lighttpd_tardibaconf"

Loading…
Cancel
Save