Skip to content

Commit

Permalink
Passthrough unrecognized openfire.sh arguments
Browse files Browse the repository at this point in the history
openfire.sh can be invoked with a number of arguments (eg `-demoboot`, `-debug`). Prior to this commit, unrecognized arguments were ignored.

With this commit, unrecognized argumetns are passed through to the java command that starts Openfire. This allows anyone to add arguments, like system properties, by doing something like `./bin/openfire.sh -Dfoo=bar`
  • Loading branch information
guusdk committed Oct 16, 2024
1 parent 0422a15 commit 2634d4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion distribution/src/bin/openfire.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ case $arguments in
sed "s/example.org/$HOSTNAME/g" $OPENFIRE_HOME/conf/openfire-demoboot.xml > $OPENFIRE_HOME/conf/openfire.xml
;;
*)
# unknown option
# unknown option, pass through the Java command
JAVACMD="$JAVACMD $arguments"
;;
esac
done
Expand Down

0 comments on commit 2634d4a

Please sign in to comment.