mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Force package updates and curl check fix
This commit is contained in:
@@ -139,11 +139,11 @@ check_admin_pass() {
|
||||
check_manager_connection() {
|
||||
# See if you can curl the manager. If not you can either try again or continue
|
||||
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=$?
|
||||
|
||||
if [[ $ret != 0 ]]; then
|
||||
if [[ $ret != 1 ]]; then
|
||||
error "Could not reach $MSRV"
|
||||
whiptail_manager_unreachable
|
||||
fi
|
||||
@@ -1984,8 +1984,9 @@ repo_sync_local() {
|
||||
echo "gpgcheck=1" >> /root/repodownload.conf
|
||||
echo "gpgkey=https://repo.securityonion.net/file/securityonion-repo/keys/securityonion.pub" >> /root/repodownload.conf
|
||||
|
||||
dnf repolist
|
||||
logCmd "dnf -c /root/repodownload.conf -y upgrade"
|
||||
logCmd "dnf repolist"
|
||||
echo "This is trying to work"
|
||||
logCmd "dnf -c /root/repodownload.conf -y upgrade --allowerasing"
|
||||
# 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 "dnf reposync --norepopath -g --delete -m -c /root/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/"
|
||||
|
||||
@@ -1143,11 +1143,13 @@ whiptail_reinstall() {
|
||||
read -r -d '' message <<- EOM
|
||||
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?
|
||||
EOM
|
||||
|
||||
whiptail --title "$whiptail_title" \
|
||||
--yesno "$message" 11 75 \
|
||||
--yesno "$message" 13 75 \
|
||||
--yes-button "Continue" --no-button "Exit" --defaultno
|
||||
|
||||
local exitstatus=$?
|
||||
|
||||
Reference in New Issue
Block a user