aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@gentoo.org>2007-04-27 22:14:49 +0000
committerGunnar Wrobel <wrobel@gentoo.org>2007-04-27 22:14:49 +0000
commited86192fba579410e4895a207e359d095332617c (patch)
tree9225e0ff156994a2bacbd01c2218617bc1ac57f2
parentFix for package_installed (diff)
downloadwebapp-config-ed86192fba579410e4895a207e359d095332617c.tar.gz
webapp-config-ed86192fba579410e4895a207e359d095332617c.tar.bz2
webapp-config-ed86192fba579410e4895a207e359d095332617c.zip
Do not use absolute path names by default
svn path=/trunk/webapp-config/; revision=41
-rw-r--r--WebappConfig/config.py6
-rwxr-xr-xconfig/webapp-config3
2 files changed, 7 insertions, 2 deletions
diff --git a/WebappConfig/config.py b/WebappConfig/config.py
index 2cae885..7a59e60 100644
--- a/WebappConfig/config.py
+++ b/WebappConfig/config.py
@@ -268,7 +268,8 @@ class Config:
'my_errorsdir' : '%(my_hostrootdir)s/%(my_errorsbase)s',
'g_cgibindir' : '%(vhost_root)s/%(my_cgibinbase)s',
'my_approot' : '/usr/share/webapps',
- 'package_manager' : 'portage'
+ 'package_manager' : 'portage',
+ 'allow_absolute' : 'no',
}
# Setup basic defaults
@@ -979,7 +980,8 @@ class Config:
g_installdir = self.config.get('USER', 'g_installdir')
- if os.path.isabs(g_installdir):
+ if (os.path.isabs(g_installdir)
+ and self.config.get('USER', 'allow_absolute') == 'yes'):
installpath = g_installdir
else:
installpath = self.config.get('USER', 'g_htdocsdir') + '/' + g_installdir
diff --git a/config/webapp-config b/config/webapp-config
index e8dfe8b..532006c 100755
--- a/config/webapp-config
+++ b/config/webapp-config
@@ -183,6 +183,9 @@ vhost_perms_virtualowned_file="o-w"
vhost_perms_installdir="0755"
+# Allow specifying absolute path names using the -d option?
+allow_absolute="no"
+
# Supported package managers: portage, paludis
package_manager="portage"