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:
parent
201cd7a52b
commit
2a09e31afa
1 changed files with 3 additions and 2 deletions
|
@ -12,8 +12,9 @@ sudo dpkg -i $deb > /dev/null
|
||||||
sudo rm -f $deb
|
sudo rm -f $deb
|
||||||
|
|
||||||
# Patch Cesium to access local instance
|
# Patch Cesium to access local instance
|
||||||
sudo sed -i "s@\"host\".*@\"host\": \"$domain\",@" /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@\"port\".*@\"port\": \"443\"@" /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 () {
|
CONFIG_SSOWAT () {
|
||||||
|
|
Loading…
Reference in a new issue