virtual-appliance/airport/local.start
Albert Hopkins af18cc6c91 airport: Misc. Updates.
* Allow to build a particular series (e.g. Airport Europe)

* Refactor start/stop scripts.

* Add script for stopping a game.
2014-01-11 15:05:38 +00:00

12 lines
258 B
Bash
Executable File

#!/bin/sh -e
if [ ! -f /etc/firstboot ] ; then
echo Creating Airport database...
createuser -U postgres -D -l -R -S airport
createdb -U postgres -E utf8 -O airport airport
fi
su -c "/var/airport/bin/start-airport" airport
touch /etc/firstboot