|
|
| |
umask 0 | umask 0 |
| |
|
get_libdir() { |
|
CONF_LIBDIR=$(`which portageq` envvar CONF_LIBDIR) |
|
echo ${CONF_LIBDIR:=lib} |
|
} |
|
|
# ======================================================================== | # ======================================================================== |
# Some configuration variables | # Some configuration variables |
# ------------------------------------------------------------------------ | # ------------------------------------------------------------------------ |
| |
MY_DOTCONFIG=".webapp" | MY_DOTCONFIG=".webapp" |
MY_ETCCONFIG="/etc/vhosts/webapp-config" | MY_ETCCONFIG="/etc/vhosts/webapp-config" |
MY_LIBROOT="/usr/lib/webapp-config" |
MY_LIBROOT="/usr/$(get_libdir)/webapp-config" |
MY_SERVERSDIR="${MY_LIBROOT}/servers" | MY_SERVERSDIR="${MY_LIBROOT}/servers" |
MY_VERSION="1.10-r10" | MY_VERSION="1.10-r10" |
MY_CONF_VERSION="5" | MY_CONF_VERSION="5" |
|
|
| |
fn_dirisconfigprotected () | fn_dirisconfigprotected () |
{ | { |
local my_master="`/usr/lib/portage/bin/portageq config_protect`" |
local my_master="$(`which portageq` config_protect)" |
| |
# is the directory relative, or absolute? | # is the directory relative, or absolute? |
| |