Adjusted startup.sh to use the BASE_PATH from settings.py

This commit is contained in:
Michael King 2007-08-06 18:53:06 +00:00
parent c5208656f8
commit d2136ec135

View file

@ -1,7 +1,8 @@
#!/bin/bash
export DJANGO_SETTINGS_MODULE="settings"
mv -f logs/evennia.log logs/evennia.logs.old
BASE_PATH=`python -c "import settings; print settings.BASE_PATH"`
mv -f $BASE_PATH/logs/evennia.log $BASE_PATH/logs/evennia.logs.old
## There are several different ways you can run the server, read the
## description for each and uncomment the desired mode.