Skip to content

Issue2287 dashboard json upgrade script #2338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
##
## Configures dashboard.json based on global configuration options in restcomm.conf and advanced.conf.
##
## requirements:
##
## RESTCOMM_HOME env variable to be set
## dashboard.json should be in place (under $RESTCOMM_HOME/standalone/deployments/restcomm-management.war)
##
## Author: [email protected] - Orestis Tsakiridis

echo "Configuring Dashboard..."


# MAIN
if [ -z "$RESTCOMM_HOME" ]
then
echo "RESTCOMM_HOME env variable not set. Aborting."
exit 1
fi


# Variables
DASHBOARD_ROOT="$RESTCOMM_HOME"/standalone/deployments/restcomm-management.war
DASHBOARD_JSON_FILE="$DASHBOARD_ROOT"/conf/dashboard.json

sed -i "s|\"rvdUrl\":\"[^\"]*\"|\"rvdUrl\":\"$RVD_URL/restcomm-rvd\"|" "$DASHBOARD_JSON_FILE"

echo "Dasboard configured:"
cat $DASHBOARD_JSON_FILE
3 changes: 2 additions & 1 deletion restcomm/restcomm.ui/src/main/webapp/conf/dashboard.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"resetPasswordUrl": ""
"resetPasswordUrl": "",
"rvdUrl":"/restcomm-rvd"
}