Update 'update.sh'

This commit is contained in:
2019-08-22 14:04:38 -04:00
parent e2f5a2d463
commit cbbeebda3f

View File

@@ -21,7 +21,7 @@ OS=$(lsb_release -si)
OS_VER=$(lsb_release -sr)
# Debian OS
if [ -f /etc/debian_version ]; then
if [ ${OS} == 'Debian' ] || [ ${OS} == 'Ubuntu' ]; then
# upgrade all packages
apt update; apt upgrade -y
@@ -52,7 +52,7 @@ if [ -f /etc/debian_version ]; then
update-ca-certificates
# CentOS OS
elif [ -f /etc/redhat-release ]; then
elif [ ${OS} == 'CentOS' ]; then
# upgrade all packages
yum update -y