Force package updates and curl check fix

This commit is contained in:
Mike Reeves
2023-03-16 15:36:43 -04:00
parent 6e3194486c
commit 849e82e39f
2 changed files with 8 additions and 5 deletions

View File

@@ -139,11 +139,11 @@ check_admin_pass() {
check_manager_connection() { check_manager_connection() {
# See if you can curl the manager. If not you can either try again or continue # See if you can curl the manager. If not you can either try again or continue
info "Checking manager connectivity" info "Checking manager connectivity"
man_test_err=$(curl -k -L -sS https://$MSRVIP/repo --connect-timeout 5 2>&1) man_test_err=$(curl -s $MSRVIP:4505 --connect-timeout 5 2>&1)
local ret=$? local ret=$?
if [[ $ret != 0 ]]; then if [[ $ret != 1 ]]; then
error "Could not reach $MSRV" error "Could not reach $MSRV"
whiptail_manager_unreachable whiptail_manager_unreachable
fi fi
@@ -1984,8 +1984,9 @@ repo_sync_local() {
echo "gpgcheck=1" >> /root/repodownload.conf echo "gpgcheck=1" >> /root/repodownload.conf
echo "gpgkey=https://repo.securityonion.net/file/securityonion-repo/keys/securityonion.pub" >> /root/repodownload.conf echo "gpgkey=https://repo.securityonion.net/file/securityonion-repo/keys/securityonion.pub" >> /root/repodownload.conf
dnf repolist logCmd "dnf repolist"
logCmd "dnf -c /root/repodownload.conf -y upgrade" echo "This is trying to work"
logCmd "dnf -c /root/repodownload.conf -y upgrade --allowerasing"
# Make sure we can get to the sig repo # Make sure we can get to the sig repo
logCmd "curl --retry 5 --retry-delay 60 -A 'gridinstall/$SOVERSION/$OS/$(uname -r)/1' https://sigs.securityonion.net/checkup --output /tmp/checkup" logCmd "curl --retry 5 --retry-delay 60 -A 'gridinstall/$SOVERSION/$OS/$(uname -r)/1' https://sigs.securityonion.net/checkup --output /tmp/checkup"
logCmd "dnf reposync --norepopath -g --delete -m -c /root/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/" logCmd "dnf reposync --norepopath -g --delete -m -c /root/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/"

View File

@@ -1143,11 +1143,13 @@ whiptail_reinstall() {
read -r -d '' message <<- EOM read -r -d '' message <<- EOM
Setup has detected a previous install. Continuing the install will remove the previous install configuration. Setup has detected a previous install. Continuing the install will remove the previous install configuration.
Selecting continue is a destructive action.
Would you like to continue? Would you like to continue?
EOM EOM
whiptail --title "$whiptail_title" \ whiptail --title "$whiptail_title" \
--yesno "$message" 11 75 \ --yesno "$message" 13 75 \
--yes-button "Continue" --no-button "Exit" --defaultno --yes-button "Continue" --no-button "Exit" --defaultno
local exitstatus=$? local exitstatus=$?