From 2a09e31afa9b25fbcea106927d28a0dec3771ad8 Mon Sep 17 00:00:00 2001 From: Moul Date: Mon, 20 Mar 2017 21:04:00 +0100 Subject: [PATCH] [mod] use variable for cesium conf path. --- scripts/functions.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 691c6be..0c862d2 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -12,8 +12,9 @@ sudo dpkg -i $deb > /dev/null sudo rm -f $deb # Patch Cesium to access local instance -sudo sed -i "s@\"host\".*@\"host\": \"$domain\",@" /opt/duniter/sources/node_modules/duniter-ui/public/cesium/config.js -sudo sed -i "s@\"port\".*@\"port\": \"443\"@" /opt/duniter/sources/node_modules/duniter-ui/public/cesium/config.js +cesium_conf="/opt/duniter/sources/node_modules/duniter-ui/public/cesium/config.js" +sudo sed -i "s@\"host\".*@\"host\": \"$domain\",@" $cesium_conf +sudo sed -i "s@\"port\".*@\"port\": \"443\"@" $cesium_conf } CONFIG_SSOWAT () {