summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-08-27 13:19:52 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-08-28 15:48:42 +0200
commit64e2155d0620c0fbbaa2827fe2edbf1c6cea135c (patch)
treef3c5ea508c813619bbd07e871b770789d51e801a /installer
parentf1a09099c075640a6f28c8b4360b7b4bdcf00c93 (diff)
#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.
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_update.sh2
1 files changed, 1 insertions, 1 deletions
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"