1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00

Add a service to do update after reboot

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-03-10 10:23:46 +01:00
parent c64bed8db5
commit 3c6e85e07f
4 changed files with 27 additions and 3 deletions

14
omr-update.service.in Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Description=OMR Update
After=network.target network-online.target
[Service]
Type=simple
Restart=no
Environment="SOURCES=no"
Environment="REINSTALL=no"
Environment="LOCALFILES=yes"
ExecStart=/usr/share/omr-server/debian9-x86_64.sh
[Install]
WantedBy=multi-user.target