Skip to content

Commit

Permalink
Enable web UI auth for test environment (PiSCSI#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenic authored Oct 22, 2022
1 parent e3e833b commit 198c10f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions docker/rascsi-web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions easyinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 198c10f

Please sign in to comment.