Skip to content

Commit 97976cc

Browse files
committed
updatescripts.sh now installs import-seed-db.sh
1 parent 5f02b37 commit 97976cc

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

updatescripts.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# Download the latest scripts
3-
version='0.1.3'
3+
version='0.1.4'
44
echo "updatescripts.sh version: $version"
55
[ -z "$RG_HOME" ] && RG_HOME='/opt/deploy/sp2'
66
echo "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/
6666
fi
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
6873
rm -rf $RG_SRC/scripts
6974
echo "Done updating scripts"

0 commit comments

Comments
 (0)