wifictld/.ci/deploy.sh

13 lines
376 B
Bash
Raw Normal View History

2019-02-26 20:37:30 +01:00
#!/bin/sh
HOST=$1
PKG=$2
scp -6 -o StrictHostKeyChecking=no $CI_PROJECT_DIR/build_dir/bin/packages/mips_24kc/wifictld/"$PKG"_*mips_24kc.ipk "root@$HOST":/tmp/"$PKG".ipk
if [ $? != 0 ]; then
echo "error on uploading pkg"
exit 1
fi
ssh -6 -o StrictHostKeyChecking=no "root@$HOST" opkg remove $PKG
ssh -6 -o StrictHostKeyChecking=no "root@$HOST" opkg install /tmp/"$PKG".ipk