diff options
author | Irina Gómez <irinagomez@us.es> | 2021-02-15 11:46:59 +0000 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2021-02-15 11:46:59 +0000 |
commit | b672456506b0a32de31dd8592cd1c7e23d725a27 (patch) | |
tree | ca8cc815b944e89f8d90f759de7b33954c6acf43 /installer/opengnsys_update.sh | |
parent | a1080113e3ef3fc91c9aae2ce4298e2161b77bad (diff) |
#1027 opengnsys_update.sh and opengnsys_installer.sh configure ogclient.
Diffstat (limited to 'installer/opengnsys_update.sh')
-rwxr-xr-x | installer/opengnsys_update.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index 1154ff94..596fbbdc 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -1207,6 +1207,7 @@ function updateClient() function updateOgClient() { local ogclientUrl="https://codeload.github.com/opengnsys/ogClient/zip/$BRANCH" + local CLIENTPASS echoAndLog "${FUNCNAME}(): downloading ogClient code..." @@ -1219,6 +1220,11 @@ function updateOgClient() fi if [ -e $INSTALL_TARGET/client/ogClient/cfg/ogclient.json ]; then rm -f ogClient-"$BRANCH"/cfg/ogclient.json + else + CLIENTPASS=$(awk -F":" '{print $2}' /etc/rsyncd.secrets) + sed -i -e 's/127.0.0.1/'$ServidorAdm'/' \ + -e 's/pass'.*$'/pass\": "'$CLIENTPASS'"/' \ + ogClient-"$BRANCH"/cfg/ogclient.json fi rsync -irplt "ogClient-$BRANCH/" $INSTALL_TARGET/client/ogClient rm -f ogclient.zip |