Skip to content

Commit

Permalink
squash: Adds a default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Oct 15, 2024
1 parent 1b37d90 commit 23c41df
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions resources/jicofo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ if [[ "$1" == "--help" ]]; then
fi

if [[ ! "$JAVA_SYS_PROPS" == *"-Dconfig.file="* ]]; then
echo
echo "To run jicofo you need a configuration file. Use environment variable JAVA_SYS_PROPS."
echo "e.g. export JAVA_SYS_PROPS=\"-Dconfig.file=/etc/jitsi/jicofo/jicofo.conf\""
echo
exit 2
if [[ -f /etc/jitsi/jicofo/jicofo.conf ]]; then
JAVA_SYS_PROPS="$JAVA_SYS_PROPS -Dconfig.file=/etc/jitsi/jicofo/jicofo.conf"
else
echo
echo "To run jicofo you need a configuration file. Use environment variable JAVA_SYS_PROPS."
echo "e.g. export JAVA_SYS_PROPS=\"-Dconfig.file=/etc/jitsi/jicofo/jicofo.conf\""
echo
exit 2
fi
fi

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
Expand Down

0 comments on commit 23c41df

Please sign in to comment.