We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

diff dev-vcs/kallithea/files/start-virtualenv.sh @ 132:af030a9d6541

adding old dev-vcs/kallithea ebuild (lay around since late 2014, do not use!)
author Daniel Neugebauer <dneuge@energiequant.de>
date Sat, 26 Mar 2016 17:53:07 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-vcs/kallithea/files/start-virtualenv.sh	Sat Mar 26 17:53:07 2016 +0100
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# don't allow to host web applications as root
+if [ $EUID -eq 0 ]; then
+	echo "Denying attempt to run Kallithea as root." >&2
+	exit 1
+fi
+
+# get full + virtual environment
+source /etc/profile
+source /opt/kallithea/bin/activate
+
+# start Kallithea
+cd /var/lib/kallithea
+paster serve    --pid-file=/run/kallithea.pid \
+                --log-file=/var/log/kallithea/kallithea.log \
+                --daemon \
+                /etc/kallithea/production.ini