mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-21 00:13:06 +01:00
update is_airgap for soup
This commit is contained in:
@@ -286,7 +286,7 @@ update_centos_repo() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update_dockers() {
|
update_dockers() {
|
||||||
if [[ $is_airgap ]]; then
|
if [ $is_airgap -eq 0 ]; then
|
||||||
# Let's copy the tarball
|
# Let's copy the tarball
|
||||||
if [ ! -f $AGDOCKER/registry.tar ]; then
|
if [ ! -f $AGDOCKER/registry.tar ]; then
|
||||||
echo "Unable to locate registry. Exiting"
|
echo "Unable to locate registry. Exiting"
|
||||||
@@ -378,7 +378,7 @@ update_dockers() {
|
|||||||
# Cleanup on Aisle 4
|
# Cleanup on Aisle 4
|
||||||
clean_dockers
|
clean_dockers
|
||||||
echo "Add Registry back if airgap"
|
echo "Add Registry back if airgap"
|
||||||
if [[ $is_airgap ]]; then
|
if [ $is_airgap -eq 0 ]; then
|
||||||
docker load -i $AGDOCKER/registry_image.tar
|
docker load -i $AGDOCKER/registry_image.tar
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -480,7 +480,7 @@ echo "Found that Security Onion $INSTALLEDVERSION is currently installed."
|
|||||||
echo ""
|
echo ""
|
||||||
detect_os
|
detect_os
|
||||||
echo ""
|
echo ""
|
||||||
if [[ $is_airgap ]]; then
|
if [ $is_airgap -eq 0 ]; then
|
||||||
# Let's mount the ISO since this is airgap
|
# Let's mount the ISO since this is airgap
|
||||||
airgap_mounted
|
airgap_mounted
|
||||||
else
|
else
|
||||||
@@ -518,7 +518,7 @@ echo "Updating dockers to $NEWVERSION."
|
|||||||
update_dockers
|
update_dockers
|
||||||
|
|
||||||
# Only update the repo if its airgap
|
# Only update the repo if its airgap
|
||||||
if [ $is_airgap ]; then
|
if [ $is_airgap -eq 0 ]; then
|
||||||
update_centos_repo
|
update_centos_repo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user