1
0
mirror of https://github.com/tommytran732/Fedora-CoreOS-Ignition synced 2024-11-22 09:21:32 -05:00
Fedora-CoreOS-Ignition/auto-updater.service
Tommy 59fcc5ba77
Requires=network-online.target
Signed-off-by: Tommy <contact@tommytran.io>
2022-09-16 04:23:35 -04:00

18 lines
354 B
Desktop File

[Unit]
Description=Automatic Updater
After=docker.service
Requires=network-online.target
Requires=docker.service
[Service]
User=root
Group=root
WorkingDirectory=/path/to/docker-compose/directory
ExecStart=/usr/bin/git pull
ExecStart=/usr/bin/docker-compose pull
ExecStart=/usr/bin/docker-compose up -d
Type=oneshot
[Install]
WantedBy=multi-user.target