Add some scripts to the bts

Also, allocate a tty when ssh to the BTS
This commit is contained in:
Keith Whyte 2020-05-22 04:00:37 +02:00
parent b1f8621aff
commit ea3e00ee8e
4 changed files with 3 additions and 1 deletions

0
modules/rhizo_base/files/var/SysmoBTS/bts Executable file → Normal file
View file

0
modules/rhizo_base/files/var/SysmoBTS/pcu Executable file → Normal file
View file

View file

@ -18,6 +18,8 @@ for bts in "${!BTS[@]}" ; do
ssh $SSH_OPTS root@${BTS[$bts]} "date -s '$(date)'"
ssh $SSH_OPTS root@${BTS[$bts]} "echo nameserver 1.1.1.1 > /etc/resolv.conf; echo nameserver 9.9.9.9 >> /etc/resolv.conf"
scp $SSH_OPTS osmo-pcu.cfg root@${BTS[$bts]}:/etc/osmocom/osmo-pcu.cfg
scp $SSH_OPTS pcu bts root@${BTS[$bts]}:/bin/
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/pcu /bin/bts"
ssh $SSH_OPTS root@${BTS[$bts]} "expect -v 2>/dev/null"
if [ "$?" != "0" ]; then

View file

@ -83,7 +83,7 @@ check_trx() {
<% @bts.each_with_index do |bts, index| -%>
b<%= index %>() {
ssh -o StrictHostKeyChecking=no <%= @bts_user[bts["model"]] %>@<%= bts["ip"] %> $*
ssh -t -o StrictHostKeyChecking=no <%= @bts_user[bts["model"]] %>@<%= bts["ip"] %> $*
}
<% end -%>