From 1ce6abc6e4f5a53c3ee6fcfc4e95fa2bfaea6c06 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Tue, 4 Dec 2018 20:19:29 +0100 Subject: [PATCH] Add missing comma to Ushahidi config.json, fixes #133 --- ushahidi/install/srv/ushahidi/update-conf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ushahidi/install/srv/ushahidi/update-conf.sh b/ushahidi/install/srv/ushahidi/update-conf.sh index 25f0d77..335c7ba 100755 --- a/ushahidi/install/srv/ushahidi/update-conf.sh +++ b/ushahidi/install/srv/ushahidi/update-conf.sh @@ -2,7 +2,7 @@ HOST="${DOMAIN}" [ "${PORT}" != "443" ] && HOST="${DOMAIN}:${PORT}" -sed -i "s|\(^\s\+\"backend_url\": \).*|\1\"https://ush.${HOST}/platform\"|" /srv/ushahidi/conf/config.json +sed -i "s|\(^\s\+\"backend_url\": \).*|\1\"https://ush.${HOST}/platform\",|" /srv/ushahidi/conf/config.json API_URL="\"https:\\\/\\\/ush.${HOST}\\\/platform\\\/api\\\/v3\\\/config\\\/data-provider\"" QUERY="UPDATE \`config\` SET \`config_value\` = '${API_URL}' WHERE \`group_name\` LIKE 'data-provider' AND \`config_key\` LIKE 'url'" lxc-attach mariadb -- mysql -e "${QUERY}" ushahidi