mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Update repo URL
This commit is contained in:
@@ -626,7 +626,7 @@ configure_ntp() {
|
|||||||
|
|
||||||
# Install chrony if it isn't already installed
|
# Install chrony if it isn't already installed
|
||||||
if ! command -v chronyc &> /dev/null; then
|
if ! command -v chronyc &> /dev/null; then
|
||||||
logCmd "yum -y install chrony"
|
logCmd "dnf -y install chrony"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ -f $chrony_conf ]] && mv $chrony_conf "$chrony_conf.bak"
|
[[ -f $chrony_conf ]] && mv $chrony_conf "$chrony_conf.bak"
|
||||||
@@ -2017,10 +2017,10 @@ saltify() {
|
|||||||
# Install salt
|
# Install salt
|
||||||
if [[ $waitforstate ]]; then
|
if [[ $waitforstate ]]; then
|
||||||
# Since this is a salt master so let's install it
|
# Since this is a salt master so let's install it
|
||||||
logCmd "yum -y install salt-minion salt-master"
|
logCmd "dnf -y install salt-minion salt-master"
|
||||||
else
|
else
|
||||||
# We just need the minion
|
# We just need the minion
|
||||||
logCmd "yum -y install salt-minion"
|
logCmd "dnf -y install salt-minion"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -2358,10 +2358,9 @@ update_sudoers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update_packages() {
|
update_packages() {
|
||||||
if [[ $is_centos ]]; then
|
if [[ $is_rocky ]]; then
|
||||||
logCmd "yum repolist"
|
logCmd "dnf repolist"
|
||||||
logCmd "yum -y update --exclude=salt*,wazuh*,docker*,containerd*"
|
logCmd "dnf -y update --exclude=salt*,wazuh*,docker*,containerd*"
|
||||||
logCmd "yum -y install yum-utils"
|
|
||||||
else
|
else
|
||||||
retry 150 10 "apt-get -y update" >> "$setup_log" 2>&1 || exit 1
|
retry 150 10 "apt-get -y update" >> "$setup_log" 2>&1 || exit 1
|
||||||
retry 150 10 "apt-get -y upgrade" >> "$setup_log" 2>&1 || exit 1
|
retry 150 10 "apt-get -y upgrade" >> "$setup_log" 2>&1 || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user