Skip to content

Commit

Permalink
Merge pull request #679 from thomasjacquin/config.sh.repo-auto
Browse files Browse the repository at this point in the history
config.sh.repo - no longer allow "auto"
  • Loading branch information
ckuethe authored Oct 17, 2021
2 parents 43cb103 + 6b8a4c9 commit 044291d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config_repo/config.sh.repo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# - Values can optionally be quoted with double quotes, NOT single quotes.
# - If a variable occurs multiple times, only the last value is used.

# Choose between "ZWO", "RPiHQ", or "auto". "auto" prefers ZWO if present.
# Choose between "ZWO" or "RPiHQ". Note that "auto" is no longer allowed.
CAMERA=""


Expand Down Expand Up @@ -160,7 +160,10 @@ UHUBCTL_PORT=2
CAMERA_SETTINGS_DIR="${ALLSKY_CONFIG}"

if [ "${CAMERA}" = "" ]; then
echo "${RED}ERROR: Please set CAMERA in config.sh${NC}"
echo "${RED}ERROR: Please set CAMERA in config/config.sh${NC}"
exit 1
elif [ "${CAMERA}" = "auto" ]; then
echo "${RED}ERROR: 'auto' is no longer a valid CAMERA type. Please reset CAMERA in config/config.sh${NC}"
exit 1
fi

Expand Down

0 comments on commit 044291d

Please sign in to comment.