mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-09 10:57:04 +00:00
- Add systemd timer for daily update checks (2-6 AM window) - Create pulse-auto-update.sh script with safe rollback on failure - Add --enable-auto-updates flag to install script - Prompt users during fresh install to enable auto-updates - Respect autoUpdateEnabled flag in system.json - Only install stable releases, never RCs - Full logging to systemd journal - Tested and verified working in container
35 lines
No EOL
883 B
Desktop File
35 lines
No EOL
883 B
Desktop File
[Unit]
|
|
Description=Automatic Pulse update check and install
|
|
Documentation=https://github.com/rcourtman/Pulse
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
# Don't run if pulse service is not running
|
|
Requisite=pulse.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
# Run as root to allow service restart
|
|
User=root
|
|
Group=root
|
|
# Use the update script
|
|
ExecStart=/opt/pulse/scripts/pulse-auto-update.sh
|
|
# Restart policy for the update service itself
|
|
Restart=no
|
|
# Timeout for the update process (10 minutes should be plenty)
|
|
TimeoutStartSec=600
|
|
# Log to journal
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=pulse-update
|
|
# Security hardening
|
|
PrivateTmp=yes
|
|
ProtectHome=yes
|
|
ProtectSystem=strict
|
|
ReadWritePaths=/opt/pulse /etc/pulse /tmp
|
|
# Network access needed for GitHub
|
|
PrivateNetwork=no
|
|
# Nice level to run updates at lower priority
|
|
Nice=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |