Ansible-SnipeIT/roles/snipeit/templates/snipeit-upgrade.service.j2

9 lines
265 B
Text
Raw Permalink Normal View History

2024-09-20 11:37:43 -06:00
[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'