rosenvold-core/post-install/lib/configure_automatic_updates.sh

5 lines
250 B
Bash

# Stage rpm-ostree updates automatically instead of only checking for them.
configure_automatic_updates() {
systemctl enable rpm-ostreed-automatic.timer
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf
}