Adding auto upgrade service
This commit is contained in:
parent
424dc8051f
commit
f1eeff4785
3 changed files with 34 additions and 0 deletions
8
roles/snipeit/templates/snipeit-upgrade.service.j2
Normal file
8
roles/snipeit/templates/snipeit-upgrade.service.j2
Normal file
|
@ -0,0 +1,8 @@
|
|||
[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'
|
Loading…
Add table
Add a link
Reference in a new issue