From cc6f04148a2f3c4780484ef1a64b016f21e3a87f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 20 Mar 2015 14:09:35 +0530 Subject: [PATCH] use absolute path --- vm/pandora_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/pandora_install.sh b/vm/pandora_install.sh index c37f8795..2608f125 100755 --- a/vm/pandora_install.sh +++ b/vm/pandora_install.sh @@ -113,11 +113,11 @@ JSON_DEBUG = False DB_GIN_TRGM = True EOF -MANAGE="sudo -H -u pandora python manage.py" +MANAGE="sudo -H -u pandora /srv/pandora/pandora/manage.py" cd /srv/pandora/pandora $MANAGE init_db -#echo "UPDATE django_site SET domain = '$HOST.local', name = '$HOST.local' WHERE 1=1;" | $MANAGE dbshell +echo "UPDATE django_site SET domain = '$HOST.local', name = '$HOST.local' WHERE 1=1;" | $MANAGE dbshell mkdir /srv/pandora/data chown -R pandora:pandora /srv/pandora