Gentoo Archives: gentoo-user

From: gibboris@×××××.com
To: gentoo-user@l.g.o
Subject: [gentoo-user] webapp-config, soft-link & config
Date: Sat, 07 Nov 2009 01:24:24
Message-Id: 20091107012414.GA12236@b1b1.lan
1 Hello,
2 I just tried the soft-linking mode of
3 webapp-config (like if apache followed XDG).
4 The problem is that some web apps use
5 realpath(dirname(__FILE__)) to ease config include.
6 (ampache is one of them)
7 I don't know if all apps do right to do so...
8 But to solve that webapp_hook_script may be very powerful
9 but ... it doesn't provide the $vhost_link_type
10 variable so no conditionnal hooking is possible.
11 I guess the following should not be written in a
12 hook script (neither in an ebuild)
13 sed -n '/^vhost_link_type/{s/.*=//p;q}' ${WEBAPP_CONFIG}
14 Any other idea ?
15
16 Raph