From 81a7961bc6ba6322cd22fb1b52162b2c0d1d590e Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Mon, 11 May 2020 23:34:11 +0200 Subject: [PATCH] BTS opkg, set path for install Otherwise we can get an error calling install scripts useradd not found, for example --- modules/rhizo_base/files/var/SysmoBTS/opkg.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/rhizo_base/files/var/SysmoBTS/opkg.sh b/modules/rhizo_base/files/var/SysmoBTS/opkg.sh index 333b062..3f7d1a6 100644 --- a/modules/rhizo_base/files/var/SysmoBTS/opkg.sh +++ b/modules/rhizo_base/files/var/SysmoBTS/opkg.sh @@ -18,7 +18,7 @@ for bts in "${!BTS[@]}" ; do 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]} "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin 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" fi @@ -28,3 +28,4 @@ done if [ "$OLDPWD" != "" ]; then cd $OLDPWD fi + \ No newline at end of file