Update 2 and remove 3 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 34s

This commit is contained in:
Your Name
2025-09-08 08:17:42 +12:00
parent 7e73e6a1d1
commit 308e0e3bc6
5 changed files with 223 additions and 260 deletions

View File

@@ -25,11 +25,16 @@ echo " - Setting up kiosk scripts"
echo " - Disabling automatic updates"
echo " - Configuring display settings"
echo ""
read -p "Do you want to continue? (yes/no): " confirmation
if [ "$confirmation" != "yes" ]; then
echo "Installation cancelled."
exit 0
# Check if running interactively (has a TTY)
if [ -t 0 ]; then
read -p "Do you want to continue? (yes/no): " confirmation
if [ "$confirmation" != "yes" ]; then
echo "Installation cancelled."
exit 0
fi
else
echo "Running in non-interactive mode, proceeding with installation..."
fi
echo "Pulling Docker image..."
@@ -42,10 +47,7 @@ if _is_container_exists "$CONTAINER_NAME"; then
_remove_container "$CONTAINER_NAME" || true
fi
# Make scripts executable
chmod +x ${SERVICE_PATH}/scripts/*.sh
# Start the setup container
# Start the setup container (scripts are now embedded in start.sh)
bash ./start.sh || _die "Failed to start Squash Display setup"
echo ""