diff --git a/Makefile b/Makefile index 4f4d9c6d..97416e86 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,7 @@ install: build install -D -m 644 -t ${DESTDIR}/usr/share/polkit-1/rules.d dist/polkit-1/rules.d/*.rules install -D -m 644 -t ${DESTDIR}/usr/share/polkit-1/actions dist/polkit-1/actions/*.policy install -D -m 644 -t ${DESTDIR}/usr/share/dbus-1/system.d dist/dbus-1/system.d/*.conf + install -D -m 644 -t ${DESTDIR}/usr/bin dist/bin/* .PHONY: check check: diff --git a/dist/bin/zincati-update-now b/dist/bin/zincati-update-now new file mode 100755 index 00000000..0ce0e7db --- /dev/null +++ b/dist/bin/zincati-update-now @@ -0,0 +1,21 @@ +#!/bin/bash +set -euo pipefail + +echo "WARN: This command is experimental and subject to change." >&2 + +# this should exist already, but in case +mkdir -p /run/zincati/config.d +cat > /run/zincati/config.d/99-update-now.toml << EOF +[identity] +rollout_wariness = 0.0 +[updates] +strategy = "immediate" +EOF + +touch /run/zincati/override-interactive-check + +systemctl daemon-reload +systemctl restart zincati + +echo "INFO: Streaming Zincati and RPM-OSTree logs..." >&2 +exec journalctl -f -u zincati -u rpm-ostreed