Update 'update.sh'
This commit is contained in:
@@ -21,7 +21,7 @@ OS=$(lsb_release -si)
|
|||||||
OS_VER=$(lsb_release -sr)
|
OS_VER=$(lsb_release -sr)
|
||||||
|
|
||||||
# Debian OS
|
# Debian OS
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ ${OS} == 'Debian' ] || [ ${OS} == 'Ubuntu' ]; then
|
||||||
# upgrade all packages
|
# upgrade all packages
|
||||||
apt update; apt upgrade -y
|
apt update; apt upgrade -y
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ if [ -f /etc/debian_version ]; then
|
|||||||
update-ca-certificates
|
update-ca-certificates
|
||||||
|
|
||||||
# CentOS OS
|
# CentOS OS
|
||||||
elif [ -f /etc/redhat-release ]; then
|
elif [ ${OS} == 'CentOS' ]; then
|
||||||
# upgrade all packages
|
# upgrade all packages
|
||||||
yum update -y
|
yum update -y
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user