mirror of
https://github.com/Monadical-SAS/cubbi.git
synced 2025-12-21 04:39:07 +00:00
chore: remove unnecessary output
This commit is contained in:
@@ -7,13 +7,9 @@ if [ "$(id -u)" != "0" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Quick check instead of full logic
|
# Quick check instead of full logic
|
||||||
if grep -q "INIT_COMPLETE=true" "/init.status" 2>/dev/null; then
|
if ! grep -q "INIT_COMPLETE=true" "/init.status" 2>/dev/null; then
|
||||||
echo "MC initialization has completed."
|
|
||||||
else
|
|
||||||
echo "MC initialization is still in progress."
|
|
||||||
# Only follow logs if initialization is incomplete
|
# Only follow logs if initialization is incomplete
|
||||||
if [ -f "/init.log" ]; then
|
if [ -f "/init.log" ]; then
|
||||||
echo "Initialization is still in progress. Showing logs:"
|
|
||||||
echo "----------------------------------------"
|
echo "----------------------------------------"
|
||||||
tail -f /init.log &
|
tail -f /init.log &
|
||||||
tail_pid=$!
|
tail_pid=$!
|
||||||
@@ -23,7 +19,6 @@ else
|
|||||||
if grep -q "INIT_COMPLETE=true" "/init.status" 2>/dev/null; then
|
if grep -q "INIT_COMPLETE=true" "/init.status" 2>/dev/null; then
|
||||||
kill $tail_pid 2>/dev/null
|
kill $tail_pid 2>/dev/null
|
||||||
echo "----------------------------------------"
|
echo "----------------------------------------"
|
||||||
echo "Initialization completed."
|
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
Reference in New Issue
Block a user