- added example docker-compose for minisrv + webone - update: wtv-home:/home: reduce size of title to fit longer version numbers - update: wtv-chat:/home: fix colors - update: login system: do not send tellyscript nor login headers to reconnecting (eg client:redial) client - fix: fixed tellyscript path for wtv-1800:/noflash (bf0app braindead) - update flashrom subsystem: - moved duplicate code into WTVFlashrom class - smarter part information detection - http(s) proxy updates: - allow ~ character - fix HTTPS when using HTTP proxy - include example webone.conf for external HTTP Proxy - update: app.js: enable graceful shutdown with SIGTERM - update: add service ip to wtv-tricks:/info
22 lines
505 B
Bash
22 lines
505 B
Bash
#!/bin/bash
|
|
get_latest_release() {
|
|
curl --silent "https://api.github.com/repos/$1/releases/latest"
|
|
}
|
|
|
|
debfile=$(get_latest_release atauenis/webone | \
|
|
grep "browser_download_url" | \
|
|
grep "amd64" | \
|
|
grep "deb" | \
|
|
sed -E 's/.*"([^"]+)".*/\1/')
|
|
|
|
if [ ! -z "${debfile}" ]; then
|
|
curl --silent -L "${debfile}" -o /tmp/webone.deb
|
|
if [ ! -f /bin/systemctl ]; then
|
|
# Create dummy systemctl
|
|
touch /bin/systemctl
|
|
chmod +x /bin/systemctl
|
|
fi
|
|
apt-get install --yes /tmp/webone.deb
|
|
rm /tmp/webone.deb
|
|
fi
|