Changing ownership of tmp upgrade file so that wrolpi-upgrade can change it.

This commit is contained in:
Roland 2026-02-05 08:52:54 -07:00
parent f5a48e3e7c
commit 14d4aa1df4
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -58,6 +58,7 @@ if [ -z "$WROLPI_UPGRADE_SERVICE" ]; then
echo "Delegating upgrade to wrolpi-upgrade.service..."
# Write branch config for the service.
echo "BRANCH=${BRANCH}" >/tmp/wrolpi-upgrade.env
chown wrolpi:wrolpi /tmp/wrolpi-upgrade.env
# Start following journal in background (new entries only).
journalctl -fn0 -u wrolpi-upgrade.service &
JOURNAL_PID=$!