BTS management:

Add a noupdate option to the opkg script to try
updating the packages without actually running an
update (maybe we already have the latest lists)

Tweak the maint and timing for it to temporarily push
fixed manager binary.

In opkg-1, install on BTS0 in order
to download the packages before copying them to the
local system.
This commit is contained in:
Keith Whyte 2021-05-28 01:12:15 +02:00
parent ccb89949ec
commit 6a88c29144
5 changed files with 25 additions and 12 deletions

View file

@ -44,13 +44,18 @@ for bts in "${!BTS[@]}" ; do
# Nothing to do
fi
if [ "$_trxNR" == "0" ] ; then
if [ "$_modelNR" == "2050" ] && [ "$_trxNR" == "0" ] ; then
# Master Verified.
echo "BTS is a 2050 Master"
scp $SSH_OPTS mgr root@${BTS[$bts]}:/bin/
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/mgr"
gunzip -c sysmobts-mgr-arm.gz > sysmobts-mgr
scp $SSH_OPTS sysmobts-mgr root@${BTS[$bts]}:/usr/bin/
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 755 /usr/bin/sysmobts-mgr ; systemctl restart sysmobts-mgr"
# things to do
scp $SSH_OPTS rc.local root@${BTS[$bts]}:/etc/rc.local
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /etc/rc.local"
fi
if [ "$_trxNR" == "1" ] ; then