mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Allow local modification acceptance prompt to be skipped when passing 'skip-prompt' as a parameter value to check_local_mods() function
This commit is contained in:
@@ -227,13 +227,13 @@ check_local_mods() {
|
|||||||
echo ""
|
echo ""
|
||||||
echo "To reference this list later, check $SOUP_LOG".
|
echo "To reference this list later, check $SOUP_LOG".
|
||||||
echo
|
echo
|
||||||
if [[ -z $UNATTENDED ]]; then
|
if [[ -z $UNATTENDED ]] && ! [[ "${1}" == "skip-prompt" ]]; then
|
||||||
while true; do
|
while true; do
|
||||||
read -p "Please review the local modifications shown above as they may cause problems during or after the update.
|
read -p "Please review the local modifications shown above as they may cause problems during or after the update.
|
||||||
|
|
||||||
Would you like to proceed with the update anyway?
|
Would you like to proceed with the update anyway?
|
||||||
|
|
||||||
If so, type 'YES'. Otherwise, type anything else to exit SOUP." yn
|
If so, type 'YES'. Otherwise, type anything else to exit SOUP. " yn
|
||||||
|
|
||||||
case $yn in
|
case $yn in
|
||||||
[yY][eE][sS] ) echo "Local modifications accepted. Continuing..."; break;;
|
[yY][eE][sS] ) echo "Local modifications accepted. Continuing..."; break;;
|
||||||
@@ -1405,7 +1405,7 @@ main() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Checking for local modifications."
|
echo "Checking for local modifications."
|
||||||
check_local_mods
|
check_local_mods skip-prompt
|
||||||
|
|
||||||
echo "Checking sudoers file."
|
echo "Checking sudoers file."
|
||||||
check_sudoers
|
check_sudoers
|
||||||
|
|||||||
Reference in New Issue
Block a user