megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
comparison 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 |
comparison
equal
deleted
inserted
replaced
120:56f8a6108f7d | 132:af030a9d6541 |
---|---|
1 #!/bin/bash | |
2 | |
3 # don't allow to host web applications as root | |
4 if [ $EUID -eq 0 ]; then | |
5 echo "Denying attempt to run Kallithea as root." >&2 | |
6 exit 1 | |
7 fi | |
8 | |
9 # get full + virtual environment | |
10 source /etc/profile | |
11 source /opt/kallithea/bin/activate | |
12 | |
13 # start Kallithea | |
14 cd /var/lib/kallithea | |
15 paster serve --pid-file=/run/kallithea.pid \ | |
16 --log-file=/var/log/kallithea/kallithea.log \ | |
17 --daemon \ | |
18 /etc/kallithea/production.ini |