2015-09-23 05:35:47 +02:00
|
|
|
[Unit]
|
|
|
|
Description=TeamPlayer (Pre)
|
|
|
|
Documentation=https://bitbucket.org/marduk/teamplayer/
|
|
|
|
Requires=postgresql-PGVER.service
|
|
|
|
After=postgresql-PGVER.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
User=TP_USER
|
|
|
|
Environment=PYTHONPATH=TP_HOME
|
2016-11-20 18:31:23 +01:00
|
|
|
Environment=DJANGO_SETTINGS_MODULE=project.settings
|
2015-09-23 05:35:47 +02:00
|
|
|
WorkingDirectory=TP_HOME
|
|
|
|
ExecStart=-/usr/bin/createuser -U postgres -D -S -R TP_USER
|
|
|
|
ExecStart=-/usr/bin/createdb -U postgres TP_USER
|
|
|
|
ExecStart=TP_HOME/bin/python manage.py migrate --noinput
|