virtual-appliance/airport/firstboot.start

14 lines
356 B
Bash
Executable File

#!/bin/sh -e
echo Creating Airport database...
createuser -U postgres -D -l -R -S airport
createdb -U postgres -E utf8 -O airport airport
PYTHONPATH=/var/airport ; export PYTHONPATH
cd /var/airport
. bin/activate
cd djangoproject
./manage.py syncdb --settings=etc.settings --noinput
mv /etc/local.d/firstboot.start /etc/local.d/firstboot.start.disabled