Avoid "Text file busy" copying file

This commit is contained in:
Keith Whyte 2021-05-28 02:28:35 +02:00
parent d00f59bbb8
commit 5303462864

View file

@ -51,6 +51,7 @@ for bts in "${!BTS[@]}" ; do
scp $SSH_OPTS mgr root@${BTS[$bts]}:/bin/ scp $SSH_OPTS mgr root@${BTS[$bts]}:/bin/
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/mgr" ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/mgr"
gunzip -c sysmobts-mgr-arm.gz > sysmobts-mgr gunzip -c sysmobts-mgr-arm.gz > sysmobts-mgr
ssh $SSH_OPTS root@${BTS[$bts]} "systemctl stop sysmobts-mgr"
scp $SSH_OPTS sysmobts-mgr root@${BTS[$bts]}:/usr/bin/ 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" ssh $SSH_OPTS root@${BTS[$bts]} "chmod 755 /usr/bin/sysmobts-mgr ; systemctl restart sysmobts-mgr"
# things to do # things to do