From 64e2155d0620c0fbbaa2827fe2edbf1c6cea135c Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 27 Aug 2020 13:19:52 +0200 Subject: #1003 Fix ogClient update ogClient is not updated when the update script runs. The update script is using "mv", which can not merge folders and is putting the update inside a folder. This patch updates the script to use "rsync", which can merge folders. --- installer/opengnsys_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index 0f562335..6468fd7f 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -1195,7 +1195,7 @@ function updateOgClient() if [ -e $INSTALL_TARGET/client/ogClient/cfg/ogclient.json ]; then rm -f ogClient-"$BRANCH"/cfg/ogclient.json fi - mv -f "ogClient-$BRANCH" $INSTALL_TARGET/client/ogClient + rsync -irplt "ogClient-$BRANCH/" $INSTALL_TARGET/client/ogClient rm -f ogclient.zip echoAndLog "${FUNCNAME}(): ogClient code was downloaded and updated" -- cgit v1.2.3-18-g5258