mirror of
https://github.com/tommytran732/Fedora-CoreOS-Ignition
synced 2024-11-22 09:21:32 -05:00
Add auto-updater.service to Docker-Compose files
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
59fcc5ba77
commit
f6393dc6fa
File diff suppressed because one or more lines are too long
@ -123,6 +123,26 @@ storage:
|
||||
contents:
|
||||
inline: |
|
||||
GSSAPIAuthentication no
|
||||
- path: /etc/systemd/system/automatic-updater.service
|
||||
contents:
|
||||
inline: |
|
||||
[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
|
||||
links:
|
||||
- path: /etc/localtime
|
||||
target: ../usr/share/zoneinfo/America/New_York
|
||||
|
@ -1,17 +0,0 @@
|
||||
[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
|
Loading…
Reference in New Issue
Block a user