From d2136ec135516a16ea78ace8801c9d8fe1cb0e52 Mon Sep 17 00:00:00 2001 From: Michael King Date: Mon, 6 Aug 2007 18:53:06 +0000 Subject: [PATCH] Adjusted startup.sh to use the BASE_PATH from settings.py --- startup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/startup.sh b/startup.sh index a40e301df9..9b9b886123 100755 --- a/startup.sh +++ b/startup.sh @@ -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.