repackage wcsinstd
This commit is contained in:
parent
19b4516525
commit
d6602f2db5
|
@ -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)
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@ --with python2 --buildsystem=python_distutils
|
||||
dh $@ --with python2
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -7,7 +7,6 @@ set -e
|
|||
|
||||
case "$1" in purge)
|
||||
deluser --quiet --system wcsinstd > /dev/null || true
|
||||
rm -f /etc/wcsinstd/secret
|
||||
;;
|
||||
|
||||
esac
|
||||
|
|
Reference in New Issue