automatic update

I have the following service to update fedora is there anything similar I can use for bazzite



echo "[Unit]
Description=Automatic Update
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/dnf update -y
TimeoutStopSec=180

[Install]
WantedBy=multi-user.target" > /etc/systemd/system/autoupdate.service

echo "[Unit]
Description=Automatic Update Timer

[Timer]
OnBootSec=1h
OnUnitActiveSec=1h

[Install]
WantedBy=timers.target" > /etc/systemd/system/autoupdate.timer

echo "[Unit]
Description=Automatic Update
After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/flatpak update --assumeyes --noninteractive --system
TimeoutStopSec=180

[Install]
WantedBy=multi-user.target" > /etc/systemd/system/updateflatpak.service

echo "[Unit]
Description=Automatic flatpak Update Timer

[Timer]
OnBootSec=1h
OnUnitActiveSec=1h

[Install]
WantedBy=timers.target" > /etc/systemd/system/updateflatpak.timer
Was this page helpful?