8 lines
265 B
Django/Jinja
8 lines
265 B
Django/Jinja
[Unit]
|
|
Description=SnipeIt Auto Upgrade Service
|
|
[Service]
|
|
Type=oneshot
|
|
WorkingDirectory=/opt/snipeit
|
|
User={{ ansible_user }}
|
|
Group={{ ansible_user }}
|
|
ExecStart=/bin/bash -c 'git pull && php composer.phar update --no-interaction && php upgrade.php --no-interactive'
|