2015-11-13 05:32:44 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# This script should open some GUI to install updates.
|
|
|
|
# If you are creating package for other distribution, feel free to replace it
|
|
|
|
# with distribution-specific script.
|
|
|
|
|
2016-06-01 04:47:56 +02:00
|
|
|
if [ -e /etc/redhat-release -a -x /usr/bin/dnf ]; then
|
|
|
|
xterm -title update -e su -l -c 'dnf update --best; echo Done. Press Enter to exit.; read x'
|
|
|
|
elif [ -e /etc/redhat-release -a -x /usr/bin/yum ]; then
|
2015-11-13 05:32:44 +01:00
|
|
|
xterm -title update -e su -l -c 'yum update; echo Done. Press Enter to exit.; read x'
|
|
|
|
elif [ -e /etc/debian_version ]; then
|
|
|
|
xterm -title update -e su -l -c 'apt-get update && apt-get -V dist-upgrade; echo Done. Press Enter to exit.; read x'
|
2016-01-16 11:52:49 +01:00
|
|
|
elif [ -e /etc/arch-release ]; then
|
|
|
|
xterm -title update -e su -l -c 'pacman -Suy; echo Done. Press Enter to exit.; read x'
|
2015-11-13 05:32:44 +01:00
|
|
|
else
|
|
|
|
xterm -title update -e su -l -c 'echo Unsupported distribution, install updates manually; bash -i'
|
|
|
|
fi
|
|
|
|
# Notify dom0 about installed updates
|
|
|
|
su -c 'service qubes-update-check start'
|