mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
fix other OS installs
This commit is contained in:
@@ -951,6 +951,7 @@ detect_os() {
|
|||||||
is_rocky=true
|
is_rocky=true
|
||||||
is_rpm=true
|
is_rpm=true
|
||||||
not_supported=true
|
not_supported=true
|
||||||
|
unset is_supported
|
||||||
elif grep -q "CentOS Stream release 9" /etc/redhat-release; then
|
elif grep -q "CentOS Stream release 9" /etc/redhat-release; then
|
||||||
OS=centos
|
OS=centos
|
||||||
OSVER=9
|
OSVER=9
|
||||||
@@ -978,7 +979,7 @@ detect_os() {
|
|||||||
UBVER=20.04
|
UBVER=20.04
|
||||||
OS=ubuntu
|
OS=ubuntu
|
||||||
is_ubuntu=true
|
is_ubuntu=true
|
||||||
is_supported=true
|
not_supported=true
|
||||||
elif grep -q "UBUNTU_CODENAME=jammy" /etc/os-release; then
|
elif grep -q "UBUNTU_CODENAME=jammy" /etc/os-release; then
|
||||||
OSVER=jammy
|
OSVER=jammy
|
||||||
UBVER=22.04
|
UBVER=22.04
|
||||||
@@ -2401,7 +2402,7 @@ update_packages() {
|
|||||||
for FILE in ${RMREPOFILES[@]}; do
|
for FILE in ${RMREPOFILES[@]}; do
|
||||||
logCmd "rm -f /etc/yum.repos.d/$FILE"
|
logCmd "rm -f /etc/yum.repos.d/$FILE"
|
||||||
done
|
done
|
||||||
else
|
elif [[ $is_deb ]]; then
|
||||||
info "Running apt-get update"
|
info "Running apt-get update"
|
||||||
retry 150 10 "apt-get -y update" "" "Err:" >> "$setup_log" 2>&1 || fail_setup
|
retry 150 10 "apt-get -y update" "" "Err:" >> "$setup_log" 2>&1 || fail_setup
|
||||||
info "Running apt-get upgrade"
|
info "Running apt-get upgrade"
|
||||||
|
|||||||
Reference in New Issue
Block a user