diederik
I wonder how do you do this:
do you do the download on the LE box only (no 2cd box involved) ?
how do you get the correct download link for the new nightly ?
does a web-browser sorta Lynx as an addon or so exists (currently can't find one) ?
with system tools installed:
it would be sufficing if an
wget https://test.libreelec.tv/LibreELEC-Gene…4-11.0-nightly-*.tar
would work ... (as long as only one nightly is in that directory)
alas not
+++ EDIT +++
wrote a small script (maybe needs some improvements...?!)
I guess it's mostly self declaring
- "&&" := short hand "if-then"
- fetch the new nightly *name* from the server
- check if the server's nightly is already running on the box
if not:
- download the last nightly from the server into ~/.update/
- backup a copy to ~/backup/
be aware: no warranty by me !!!
be aware: the script fills up ~/backup
#!/bin/bash
NIGHTLY="LibreELEC-Generic.x86_64-11.0-nightly-";
SERVER_URL="https://test.libreelec.tv";
# clean in any case ~/.update/
rm -rf ~/.update/*;
# operate in /tmp and clean up before
cd /tmp/ && rm -rf releases.json*;
wget ${SERVER_URL}/releases.json;
[ -e releases.json ] && NEW_NIGHTLY=$(grep -i ${NIGHTLY} releases.json | grep tar | cut -d: -f2| sed -e 's/"//g' -e 's/ //g' -e 's/,//g');
if [ ! -z "${NEW_NIGHTLY}" ]; then
# get currently running nightly version
CURRENT_NIGHTLY=$(cat /etc/issue |grep nightly|cut -d: -f2|cut -d "(" -f1|sed -e 's/ //g');
# and compare with the one on the server
RC=$(echo ${NEW_NIGHTLY} | grep ${CURRENT_NIGHTLY});
[ ! -z "${RC}" ] && echo -e "\n lastest nightly already running \n" && exit 13;
echo -e "\n fetching ${NEW_NIGHTLY} \n\t wait ...\n";
# clean ~/.update, download new nightly to ~/.update/ and save a copy to ~/backup/
cd ~/.update/ && rm -rf *;
wget -nc ${SERVER_URL}/${NEW_NIGHTLY};
cp *.tar ~/backup/;
echo -e "\n\n reboot to install the new nightly, e.g. \n\n\t "sync && sync && systemctl reboot" \n";
else
echo -e "\n No new nightly \n";
fi;
exit 0;
Display More