Litecell, clean opkg cache before copying

This commit is contained in:
Keith Whyte 2021-05-27 05:10:38 +02:00
parent a0250b4bc7
commit ccb89949ec

View file

@ -10,9 +10,9 @@ fi
SSH_OPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/tmp/known-$RANDOM"
. /home/rhizomatica/bin/vars.sh
mkdir opkg 2>/dev/null
mkdir opkg/cache 2>/dev/null
rm -rf ./opkg
mkdir opkg
mkdir opkg/cache
for bts in "${!BTS[@]}" ; do
@ -24,7 +24,7 @@ for bts in "${!BTS[@]}" ; do
fi
if [ $bts == 0 ]; then
scp $SSH_OPTS base-feeds-nightly.conf root@${BTS[$bts]}:/etc/opkg/base-feeds.conf
ssh $SSH_OPTS root@${BTS[$bts]} "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin opkg update"
ssh $SSH_OPTS root@${BTS[$bts]} "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin opkg clean; opkg update"
scp $SSH_OPTS -r root@${BTS[$bts]}:/var/lib/opkg/* opkg
scp $SSH_OPTS -r root@${BTS[$bts]}:/var/cache/opkg/* opkg/cache
fi