File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22# Download the latest scripts
3- version=' 0.1.3 '
3+ version=' 0.1.4 '
44echo " updatescripts.sh version: $version "
55[ -z " $RG_HOME " ] && RG_HOME=' /opt/deploy/sp2'
66echo " RG_HOME=$RG_HOME "
@@ -64,6 +64,11 @@ if [ ! -f /usr/local/sbin/updatessmpaths.sh ] || [ $RG_SRC/scripts/updatessmpath
6464 echo " Found newer version of updatessmpaths.sh. Updating"
6565 cp $RG_SRC /scripts/updatessmpaths.sh /usr/local/sbin/
6666fi
67- grep -i ' version=' /usr/local/sbin/fix* .sh /usr/local/sbin/start_server.sh
67+ if [ ! -f /usr/local/sbin/import-seed-db.sh ] || [ $RG_SRC /scripts/import-seed-db.sh -nt /usr/local/sbin/import-seed-db.sh ]; then
68+ echo " Found newer version of import-seed-db.sh. Updating"
69+ cp $RG_SRC /scripts/import-seed-db.sh /usr/local/sbin/
70+ fi
71+
72+ grep -i ' version=' /usr/local/sbin/fix* .sh /usr/local/sbin/start_server.sh /usr/local/sbin/import-seed-db.sh /usr/local/sbin/updatessmpaths.sh
6873rm -rf $RG_SRC /scripts
6974echo " Done updating scripts"
You can’t perform that action at this time.
0 commit comments