mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 02:32:46 +01:00
[fix] Change text printed to whiptail progress bar
This commit is contained in:
@@ -146,8 +146,7 @@ wait_for_apt() {
|
|||||||
|
|
||||||
local retry_count=30
|
local retry_count=30
|
||||||
local retry_timeout='10s'
|
local retry_timeout='10s'
|
||||||
local lock_msg='Could not acquire lock'
|
local lock_msg="Could not acquire lock, waiting $retry_timeout for lock to release."
|
||||||
local retry_msg="waiting $retry_timeout for lock to release."
|
|
||||||
if [ -z "$progress_callback" ]; then
|
if [ -z "$progress_callback" ]; then
|
||||||
if [ -z "$progress_bar_text" ]; then
|
if [ -z "$progress_bar_text" ]; then
|
||||||
local old_text="Installing..."
|
local old_text="Installing..."
|
||||||
@@ -161,9 +160,9 @@ wait_for_apt() {
|
|||||||
echo "Attempting to acquire dpkg lock to run apt command... (Attempt $count/$retry_count)"
|
echo "Attempting to acquire dpkg lock to run apt command... (Attempt $count/$retry_count)"
|
||||||
if __check_apt_lock; then
|
if __check_apt_lock; then
|
||||||
if [[ -z $progress_callback ]]; then
|
if [[ -z $progress_callback ]]; then
|
||||||
echo " $lock_msg, $retry_msg"
|
echo " $lock_msg"
|
||||||
else
|
else
|
||||||
$progress_callback "$retry_msg"
|
$progress_callback "$lock_msg"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
[[ -z $progress_callback ]] || $progress_callback "$old_text"
|
[[ -z $progress_callback ]] || $progress_callback "$old_text"
|
||||||
|
|||||||
Reference in New Issue
Block a user