Update 'update.sh'
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user