1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

[mod] use variable for cesium conf path.

This commit is contained in:
Moul 2017-03-20 21:04:00 +01:00
parent 201cd7a52b
commit 2a09e31afa

View file

@ -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 () {