change interval to 1 hour

This commit is contained in:
Anders Rytter Hansen 2023-09-10 14:56:58 +02:00
commit a563cd8e4b

View file

@ -50,7 +50,7 @@ cd /tmp/gpu-screen-recorder-gtk && \
# enable automatic updates
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
# change auto update interval
sed -i 's/OnUnitInactiveSec.*/OnUnitInactiveSec=5h\nOnCalendar=*-*-* 06:30:00\nPersistent=true/' /usr/lib/systemd/system/rpm-ostreed-automatic.timer && \
sed -i 's/OnUnitInactiveSec.*/OnUnitInactiveSec=1h\nOnCalendar=*-*-* 06:30:00\nPersistent=true/' /usr/lib/systemd/system/rpm-ostreed-automatic.timer && \
systemctl enable rpm-ostreed-automatic.timer && \
# Clear cache, /var and /tmp and commit ostree
rpm-ostree cleanup -m && rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \