Skip to content

Commit

Permalink
Improve remote installer
Browse files Browse the repository at this point in the history
  • Loading branch information
stefaang committed Oct 3, 2019
1 parent 4af6b09 commit 5e0de2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build_and_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ cssh=ssh

echo
echo "Install the app"
$cssh $TARGET "PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin /usr/sbin/upload_apkg -rapp.bin -d -f1 -g1 && echo 'SUCCESS!'"
ALREADY_INSTALLED=$($cssh $TARGET "del_apkg whatever | grep ${PACKAGE}")
if [ -n "${ALREADY_INSTALLED}" ]; then
$cssh $TARGET "PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin /usr/sbin/upload_apkg -rapp.bin -d -f1 -g1 && echo 'SUCCESS!'"
else
echo "Warning: this usually doesn't work!"
$cssh $TARGET "PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin /usr/sbin/upload_apkg -papp.bin -t2 -d -f0 -g1 && echo 'SUCCESS!'"
fi


TEST=tests/$PACKAGE/test.sh
Expand Down

0 comments on commit 5e0de2c

Please sign in to comment.