2015-12-12 22:42:37 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Airport (Pre)
|
|
|
|
Documentation=https://bitbucket.org/marduk/airport/
|
2018-12-06 01:59:07 +01:00
|
|
|
Requires=postgresql-10.service
|
|
|
|
After=postgresql-10.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
|