Skip to content

Add RASCSI host and port arguments to web/start.sh#771

Merged
rdmark merged 3 commits intoPiSCSI:developfrom
nucleogenic:web-rascsi-host-port-args
Jul 26, 2022
Merged

Add RASCSI host and port arguments to web/start.sh#771
rdmark merged 3 commits intoPiSCSI:developfrom
nucleogenic:web-rascsi-host-port-args

Conversation

@nucleogenic
Copy link
Copy Markdown
Member

Allows web/start.sh to accept --rascsi-host and --rascsi-port arguments, which are then passed through to web.py.

Fixes an issue where web.py errors when the --rascsi-port argument is specified.

@nucleogenic nucleogenic force-pushed the web-rascsi-host-port-args branch from 552db92 to f2421f2 Compare July 25, 2022 02:07
echo "ERROR: unknown parameter \"$PARAM\""
exit 1
;;
-p | --port)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For clarity we should rename the long form for this parameter now, I think. F.e. "--web-port"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment on lines +99 to +104
--rascsi-host)
ARG_RASCSI_HOST="--rascsi-host $VALUE"
;;
--rascsi-port)
ARG_RASCSI_PORT="--rascsi-port $VALUE"
;;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a one letter parameter for each. Maybe something like -h and -o

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@nucleogenic nucleogenic requested a review from rdmark July 26, 2022 04:19
@nucleogenic nucleogenic marked this pull request as ready for review July 26, 2022 04:19
Copy link
Copy Markdown
Member

@rdmark rdmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@rdmark rdmark merged commit dc1414b into PiSCSI:develop Jul 26, 2022
@nucleogenic nucleogenic deleted the web-rascsi-host-port-args branch July 27, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants