fix(uid): use symlink instead of volume for persistent volume in the container

This commit is contained in:
2025-04-01 17:01:25 -06:00
parent f8b8639bb0
commit dd5b9ec213
5 changed files with 81 additions and 47 deletions

View File

@@ -1,6 +1,11 @@
#!/bin/bash
# Script to check and display initialization status - optimized version
# Only proceed if running as root
if [ "$(id -u)" != "0" ]; then
exit 0
fi
# Quick check instead of full logic
if grep -q "INIT_COMPLETE=true" "/init.status" 2>/dev/null; then
echo "MC initialization has completed."
@@ -12,7 +17,7 @@ else
echo "----------------------------------------"
tail -f /init.log &
tail_pid=$!
# Check every second if initialization has completed
while true; do
if grep -q "INIT_COMPLETE=true" "/init.status" 2>/dev/null; then
@@ -26,4 +31,6 @@ else
else
echo "No initialization logs found."
fi
fi
fi
exec gosu mcuser /bin/bash -il