virtual-appliance/appliances/airport/airport-pre.service

17 lines
603 B
SYSTEMD
Raw Normal View History

2015-12-12 22:42:37 +01:00
[Unit]
Description=Airport (Pre)
Documentation=https://bitbucket.org/marduk/airport/
2016-10-19 14:26:12 +02:00
Requires=postgresql-9.6.service
After=postgresql-9.6.service
2015-12-12 22:42:37 +01:00
[Service]
Type=oneshot
User=airport
Environment=PYTHONPATH=/var/lib/airport/djangoproject
Environment=DJANGO_SETTINGS_MODULE=djangoproject.settings
WorkingDirectory=/var/lib/airport
ExecStart=-/usr/bin/createuser -U postgres -D -S -R airport
ExecStart=-/usr/bin/createdb -U postgres airport
ExecStart=/var/lib/airport/bin/python djangoproject/manage.py migrate auth --noinput
ExecStart=/var/lib/airport/bin/python djangoproject/manage.py migrate --noinput