repackage wcsinstd

This commit is contained in:
Jérôme Schneider 2014-06-19 16:56:12 +02:00
parent 19b4516525
commit d6602f2db5
5 changed files with 3 additions and 21 deletions

11
debian/manage.py vendored
View File

@ -1,11 +0,0 @@
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
sys.path.insert(0, '/usr/lib/wcsinstd')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "debian_settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)

2
debian/rules vendored
View File

@ -1,4 +1,4 @@
#!/usr/bin/make -f
%:
dh $@ --with python2 --buildsystem=python_distutils
dh $@ --with python2

View File

@ -1,3 +1,2 @@
debian/manage.py usr/lib/wcsinstd
debian/debian_settings.py usr/lib/wcsinstd
debian/debian_wsgi.py usr/lib/wcsinstd
manage.py usr/lib/wcsinstd
debian/settings.ini etc/wcsinstd

View File

@ -32,11 +32,6 @@ case "$1" in
chown -R $WCSINSTD_USER:$WCSINSTD_GROUP $WCSINSTD_HOME/media $WCSINSTD_HOME/templates
# echo -n "Initializing sqlite database.."
# $WCSINSTD_INIT manage syncdb --migrate
if [ ! -f /etc/$NAME/secret ]; then
echo -n "Generating secret.."
dd if=/dev/random ibs=1 count=32 2>/dev/null >/etc/$NAME/secret
echo "..done"
fi
echo -n "Generating static files.."
$WCSINSTD_INIT manage collectstatic --noinput --link
echo "..done"

View File

@ -7,7 +7,6 @@ set -e
case "$1" in purge)
deluser --quiet --system wcsinstd > /dev/null || true
rm -f /etc/wcsinstd/secret
;;
esac