summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2014-10-16 15:28:43 -0400
committerDevan Franchini <twitch153@gentoo.org>2015-06-19 15:47:48 -0400
commit2ca7fb72196b0d19973cd0f422367ef4df8b121c (patch)
treeb3ae5b78ebf53d2b08c461868e18da61574cbee4
parentconfig.py: Improves package version checking (diff)
downloadwebapp-config-2ca7fb72196b0d19973cd0f422367ef4df8b121c.tar.gz
webapp-config-2ca7fb72196b0d19973cd0f422367ef4df8b121c.tar.bz2
webapp-config-2ca7fb72196b0d19973cd0f422367ef4df8b121c.zip
{config, server}.py: Adds Tracd server support
config/webapp-config: Adds changes to config to reflect the addition of new server support.
-rw-r--r--WebappConfig/config.py3
-rw-r--r--WebappConfig/server.py13
-rwxr-xr-xconfig/webapp-config1
3 files changed, 15 insertions, 2 deletions
diff --git a/WebappConfig/config.py b/WebappConfig/config.py
index 5eb4584..cdae149 100644
--- a/WebappConfig/config.py
+++ b/WebappConfig/config.py
@@ -1557,7 +1557,8 @@ class Config:
'lighttpd' : WebappConfig.server.Lighttpd,
'cherokee' : WebappConfig.server.Cherokee,
'nginx' : WebappConfig.server.Nginx,
- 'gatling' : WebappConfig.server.Gatling}
+ 'gatling' : WebappConfig.server.Gatling,
+ 'tracd' : WebappConfig.server.Tracd,}
server = self.config.get('USER', 'vhost_server')
diff --git a/WebappConfig/server.py b/WebappConfig/server.py
index a2b8e3f..ec9c141 100644
--- a/WebappConfig/server.py
+++ b/WebappConfig/server.py
@@ -356,10 +356,21 @@ class Gatling(Basic):
self.vhost_server_uid = get_user('gatling')
self.vhost_server_gid = get_group('gatling')
+class Tracd(Basic):
+
+ name = 'Tracd'
+ desc = 'supports installation on Trac standalone server'
+ dep = 'www-apps/trac'
+
+ def set_server_user(self):
+ self.vhost_server_uid = get_user('tracd')
+ self.vhost_server_gid = get_group('tracd')
+
def listservers():
OUT.notice('\n'.join(['apache',
'lighttpd',
'cherokee',
'nginx',
- 'gatling']))
+ 'gatling',
+ 'tracd',]))
diff --git a/config/webapp-config b/config/webapp-config
index b93c314..da01bc6 100755
--- a/config/webapp-config
+++ b/config/webapp-config
@@ -69,6 +69,7 @@ vhost_hostname="localhost"
# cherokee
# nginx
# gatling
+# tracd
#
# you can override this setting by using the -s switch to webapp-config