Update 2 and remove 3 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 34s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 34s
This commit is contained in:
@@ -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 ""
|
||||
|
Reference in New Issue
Block a user