Add opkg credentials for BTS
This commit is contained in:
parent
ed296b1dfb
commit
98648569aa
3 changed files with 6 additions and 1 deletions
|
@ -13,7 +13,10 @@ SSH_OPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/tmp/known-$RANDOM"
|
|||
for bts in "${!BTS[@]}" ; do
|
||||
|
||||
if [ "$(ssh $SSH_OPTS ${BTS[$bts]} 'grep 201705 /etc/opkg/base-feeds.conf >/dev/null; echo $?')" == "0" ] ; then
|
||||
|
||||
grep OPKG_CREDS base-feeds-nightly.conf > /dev/null
|
||||
if [ "$?" == "0" ]; then
|
||||
sed -i s/OPKG_CREDS/$OPKG_CREDS/g base-feeds-nightly.conf
|
||||
fi
|
||||
scp $SSH_OPTS base-feeds-nightly.conf root@${BTS[$bts]}:/etc/opkg/base-feeds.conf
|
||||
ssh $SSH_OPTS root@${BTS[$bts]} "opkg update; opkg install osmo-bts osmo-pcu sysmobts-util ntp"
|
||||
ssh $SSH_OPTS root@${BTS[$bts]} "systemctl enable osmo-pcu; systemctl start osmo-pcu"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue