hamclock fixes

This commit is contained in:
David Young
2026-06-06 06:04:44 -06:00
parent 13f9a4cb39
commit d04bd959d5
2 changed files with 4 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ if [ -f "$HOME/.config/systemd/user/hamclock.service" ]; then
rm "$HOME/.config/systemd/user/hamclock.service" rm "$HOME/.config/systemd/user/hamclock.service"
systemctl --user daemon-reload systemctl --user daemon-reload
fi fi
sed "s/__HAMCLOCK_USER__/$USER/" "$HOME/.local/share/HamPackServer/servicefiles/hamclock.service" | sudo tee /etc/systemd/system/hamclock.service > /dev/null sed -e "s/__HAMCLOCK_USER__/$USER/g" -e "s|__HAMCLOCK_HOME__|$HOME|g" "$HOME/.local/share/HamPackServer/servicefiles/hamclock.service" | sudo tee /etc/systemd/system/hamclock.service > /dev/null
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl enable hamclock sudo systemctl enable hamclock
bash "$HOME/.local/share/HamPackServer/scripts/hamclock-cleanup.sh" bash "$HOME/.local/share/HamPackServer/scripts/hamclock-cleanup.sh"

View File

@@ -6,9 +6,9 @@ Wants=network-online.target
[Service] [Service]
Type=simple Type=simple
User=__HAMCLOCK_USER__ User=__HAMCLOCK_USER__
Environment=HOME=%h Environment=HOME=__HAMCLOCK_HOME__
WorkingDirectory=%h/.local/share/hamclock WorkingDirectory=__HAMCLOCK_HOME__/.local/share/hamclock
ExecStart=%h/.local/bin/hamclock -b ohb.hamclock.app:80 ExecStart=__HAMCLOCK_HOME__/.local/bin/hamclock -b ohb.hamclock.app:80
Restart=on-failure Restart=on-failure
RestartSec=5 RestartSec=5