virtual-appliance/appliances/airport/airport-pre.service
Albert Hopkins 41a5dae789 airport: fix airport-pre.service systemd unit
The unit file was pointing to an older version of postgresql than is
installed.  Fixed.
2018-12-05 16:59:07 -08:00

17 lines
601 B
Desktop File

[Unit]
Description=Airport (Pre)
Documentation=https://bitbucket.org/marduk/airport/
Requires=postgresql-10.service
After=postgresql-10.service
[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