26 lines
737 B
Desktop File
26 lines
737 B
Desktop File
[Unit]
|
|
Description=Check or apply official stable Ranch Web 2 updates
|
|
Requires=docker.service
|
|
After=docker.service network-online.target
|
|
Wants=network-online.target
|
|
ConditionPathExists=/etc/ranch-web-updater.toml
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=root
|
|
Group=root
|
|
WorkingDirectory=/opt/ranch-web
|
|
ExecStart=/usr/bin/python3 -B /opt/ranch-web/deploy/web/updater.py --config /etc/ranch-web-updater.toml --run
|
|
TimeoutStartSec=30min
|
|
TimeoutStopSec=180s
|
|
UMask=0077
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
# Allow read-only access to root's registry credentials for private GHCR pulls.
|
|
ProtectHome=read-only
|
|
ProtectSystem=strict
|
|
ReadWritePaths=/opt/ranch-web
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
|
StandardOutput=journal
|
|
StandardError=journal
|