Update 'update.sh'

This commit is contained in:
2019-08-21 00:02:05 -04:00
parent 312cb44f52
commit e2f5a2d463

View File

@@ -12,6 +12,14 @@ if [ "$EUID" -ne 0 ]; then
exit
fi
# ensure the lsb_release is installed
# Debian and Ubuntu have it preinstaled already, CentOS needs to have it installed
type lsb_release >/dev/null 2>&1 || yum install -y redhat-lsb
# get OS ditro and version
OS=$(lsb_release -si)
OS_VER=$(lsb_release -sr)
# Debian OS
if [ -f /etc/debian_version ]; then
# upgrade all packages