tommytran732-Fedora-CoreOS-.../auto-updater.service

18 lines
351 B
SYSTEMD
Raw Normal View History

2021-11-02 22:32:22 -04:00
[Unit]
Description=Automatic Updater
After=docker.service
Wants=network-online.target
Requires=docker.service
[Service]
User=root
Group=root
WorkingDirectory=/path/to/docker-compose/directory
ExecStart=/usr/bin/git pull
2021-11-04 03:06:41 -04:00
ExecStart=/usr/bin/docker-compose pull
2021-11-02 22:32:22 -04:00
ExecStart=/usr/bin/docker-compose up -d
2021-11-04 02:49:06 -04:00
Type=oneshot
2021-11-02 22:32:22 -04:00
[Install]
WantedBy=multi-user.target