mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Fix formatting
This commit is contained in:
@@ -1978,19 +1978,6 @@ saltify() {
|
|||||||
systemctl enable salt-master >> "$setup_log" 2>&1
|
systemctl enable salt-master >> "$setup_log" 2>&1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
#if [ "$MANAGERUPDATES" = '1' ]; then
|
|
||||||
# {
|
|
||||||
# if [[ ! $is_airgap ]]; then
|
|
||||||
# Create the GPG Public Key for the Salt Repo
|
|
||||||
#cp ./public_keys/salt.pem /etc/pki/rpm-gpg/saltstack-signing-key;
|
|
||||||
|
|
||||||
# Copy repo files over
|
|
||||||
#cp ./yum_repos/saltstack.repo /etc/yum.repos.d/saltstack.repo;
|
|
||||||
# else
|
|
||||||
# info "This is airgap"
|
|
||||||
# fi
|
|
||||||
# } >> "$setup_log" 2>&1
|
|
||||||
#fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [[ ! $is_airgap ]]; then
|
if [[ ! $is_airgap ]]; then
|
||||||
@@ -2645,7 +2632,7 @@ update_sudoers() {
|
|||||||
update_packages() {
|
update_packages() {
|
||||||
if [ "$OS" = 'centos' ]; then
|
if [ "$OS" = 'centos' ]; then
|
||||||
yum repolist >> /dev/null
|
yum repolist >> /dev/null
|
||||||
yum -y update >> "$setup_log"
|
yum -y update >> "$setup_log"
|
||||||
else
|
else
|
||||||
retry 50 10 "apt-get -y update" >> "$setup_log" 2>&1 || exit 1
|
retry 50 10 "apt-get -y update" >> "$setup_log" 2>&1 || exit 1
|
||||||
retry 50 10 "apt-get -y upgrade" >> "$setup_log" 2>&1 || exit 1
|
retry 50 10 "apt-get -y upgrade" >> "$setup_log" 2>&1 || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user