1
0
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:
Tommy 2022-11-25 02:39:56 -05:00
parent 59fcc5ba77
commit f6393dc6fa
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2
3 changed files with 30 additions and 27 deletions

File diff suppressed because one or more lines are too long

View File

@ -123,6 +123,26 @@ storage:
contents: contents:
inline: | inline: |
GSSAPIAuthentication no 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: links:
- path: /etc/localtime - path: /etc/localtime
target: ../usr/share/zoneinfo/America/New_York target: ../usr/share/zoneinfo/America/New_York

View File

@ -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