Enable web UI auth for test environment (#931)

This commit is contained in:
nucleogenic 2022-10-22 17:49:46 +01:00 committed by GitHub
parent e3e833b4d2
commit 198c10f70a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -21,10 +21,13 @@ WORKDIR /home/pi/RASCSI
USER pi
COPY --chown=pi:pi . .
# Standalone RaSCSI web UI
# Install standalone RaSCSI web UI
RUN ./easyinstall.sh --run_choice=11
# Wired network bridge
# Enable web UI authentication
RUN ./easyinstall.sh --run_choice=13
# Setup wired network bridge
RUN ./easyinstall.sh --run_choice=6 --headless
USER root

View File

@ -1429,8 +1429,8 @@ while [ "$1" != "" ]; do
CONNECT_TYPE=$VALUE
;;
-r | --run_choice)
if ! [[ $VALUE =~ ^[1-9][0-9]?$ && $VALUE -ge 1 && $VALUE -le 12 ]]; then
echo "ERROR: The run choice parameter must have a numeric value between 1 and 12"
if ! [[ $VALUE =~ ^[1-9][0-9]?$ && $VALUE -ge 1 && $VALUE -le 15 ]]; then
echo "ERROR: The run choice parameter must have a numeric value between 1 and 15"
exit 1
fi
RUN_CHOICE=$VALUE