my-unattended-upgrade 495 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. exec >/dev/null 2>&1
  3. if [ -x /usr/bin/apt ]; then
  4. /usr/bin/apt update
  5. fi
  6. if [ -x /usr/bin/unattended-upgrade ]; then
  7. /usr/bin/unattended-upgrade
  8. fi
  9. if [ -x /usr/bin/flatpak ]; then
  10. /usr/bin/flatpak update --noninteractive -y
  11. /usr/bin/flatpak uninstall --unused --noninteractive -y
  12. fi
  13. if [ -x /usr/bin/rpi-eeprom-update ]; then
  14. /usr/bin/rpi-eeprom-update -a
  15. fi
  16. if [ -x /usr/bin/podman -a -x /usr/bin/systemctl ]; then
  17. /usr/bin/systemctl start podman-auto-update.service
  18. fi
  19. exit 0