From 5303462864b39a546427a6b88c17688c894fe01d Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Fri, 28 May 2021 02:28:35 +0200 Subject: [PATCH] Avoid "Text file busy" copying file --- modules/rhizo_base/files/var/SysmoBTS/maint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/rhizo_base/files/var/SysmoBTS/maint.sh b/modules/rhizo_base/files/var/SysmoBTS/maint.sh index df83bc5..2fa8668 100644 --- a/modules/rhizo_base/files/var/SysmoBTS/maint.sh +++ b/modules/rhizo_base/files/var/SysmoBTS/maint.sh @@ -51,6 +51,7 @@ for bts in "${!BTS[@]}" ; do 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 + ssh $SSH_OPTS root@${BTS[$bts]} "systemctl stop 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