summaryrefslogtreecommitdiffstats
path: root/helperscripts/unattended-upgrade/my-unattended-upgrade
blob: 52348be2db12d22e49a238c26b0dd3fc2d4b5f9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
exec >/dev/null 2>&1
if [ -x /usr/bin/apt ]; then
	/usr/bin/apt update
fi
if [ -x /usr/bin/unattended-upgrade ]; then
	/usr/bin/unattended-upgrade
fi
if [ -x /usr/bin/flatpak ]; then
	/usr/bin/flatpak update --noninteractive -y
	/usr/bin/flatpak uninstall --unused --noninteractive -y
fi
if [ -x /usr/bin/rpi-eeprom-update ]; then
	/usr/bin/rpi-eeprom-update -a
fi
exit 0
bues.ch cgit interface