mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-22 00:43:09 +01:00
[fix] Save original argument array to use later
This commit is contained in:
@@ -22,6 +22,9 @@ if [ "$uid" -ne 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Save the original argument array since we modify it
|
||||||
|
readarraay -t original_args <<< "$@"
|
||||||
|
|
||||||
cd "$(dirname "$0")" || exit 255
|
cd "$(dirname "$0")" || exit 255
|
||||||
|
|
||||||
source ./so-functions
|
source ./so-functions
|
||||||
@@ -55,7 +58,7 @@ while [[ $# -gt 0 ]]; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if ! [ -f /root/install_opt ] && [ -d /root/manager_setup/securityonion ] && [[ $(pwd) != /root/manager_setup/securityonion/setup ]]; then
|
if ! [ -f /root/install_opt ] && [ -d /root/manager_setup/securityonion ] && [[ $(pwd) != /root/manager_setup/securityonion/setup ]]; then
|
||||||
exec bash /root/manager_setup/securityonion/setup/so-setup "$@"
|
exec bash /root/manager_setup/securityonion/setup/so-setup "${original_args[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f /root/accept_changes ]]; then
|
if [[ -f /root/accept_changes ]]; then
|
||||||
@@ -284,7 +287,7 @@ if ! [ -f /root/install_opt ]; then
|
|||||||
info "Installer version mismatch, downloading correct version from manager"
|
info "Installer version mismatch, downloading correct version from manager"
|
||||||
echo "$install_type" > /root/install_opt
|
echo "$install_type" > /root/install_opt
|
||||||
download_repo_tarball
|
download_repo_tarball
|
||||||
exec bash /root/manager_setup/securityonion/setup/so-setup "$@"
|
exec bash /root/manager_setup/securityonion/setup/so-setup "${original_args[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $is_analyst ]]; then
|
if [[ $is_analyst ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user