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

This commit is contained in:
j
2026-01-26 22:01:44 +13:00
parent e994b992b4
commit 20e8e40ee6
3 changed files with 18 additions and 12 deletions

View File

@@ -49,15 +49,20 @@ fi
if [ -z "$SYSTEM_TYPE" ]; then
echo " Could not auto-detect system type."
echo " Please select your system:"
echo " 1) Raspberry Pi"
echo " 2) Ubuntu (x86_64/Mac Mini)"
read -p " Enter choice (1 or 2): " choice
case $choice in
1) SYSTEM_TYPE="rpi" ;;
2) SYSTEM_TYPE="ubuntu" ;;
*) _die "Invalid choice. Installation cancelled." ;;
esac
# Check if running interactively
if [ -t 0 ]; then
echo " Please select your system:"
echo " 1) Raspberry Pi"
echo " 2) Ubuntu (x86_64/Mac Mini)"
read -p " Enter choice (1 or 2): " choice
case $choice in
1) SYSTEM_TYPE="rpi" ;;
2) SYSTEM_TYPE="ubuntu" ;;
*) _die "Invalid choice. Installation cancelled." ;;
esac
else
_die "Could not auto-detect system type. Set SYSTEM_TYPE=rpi or SYSTEM_TYPE=ubuntu in service.env"
fi
fi
echo ""