use absolute path
This commit is contained in:
parent
d15e6c9629
commit
cc6f04148a
1 changed files with 2 additions and 2 deletions
|
@ -113,11 +113,11 @@ JSON_DEBUG = False
|
||||||
DB_GIN_TRGM = True
|
DB_GIN_TRGM = True
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
MANAGE="sudo -H -u pandora python manage.py"
|
MANAGE="sudo -H -u pandora /srv/pandora/pandora/manage.py"
|
||||||
|
|
||||||
cd /srv/pandora/pandora
|
cd /srv/pandora/pandora
|
||||||
$MANAGE init_db
|
$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
|
mkdir /srv/pandora/data
|
||||||
chown -R pandora:pandora /srv/pandora
|
chown -R pandora:pandora /srv/pandora
|
||||||
|
|
Loading…
Reference in a new issue