mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-03-02 04:55:54 +00:00
pastebinit: use LE paste service
This commit is contained in:
packages/sysutils/busybox
@ -119,6 +119,8 @@ makeinstall_target() {
|
||||
cp ${PKG_DIR}/scripts/apt-get ${INSTALL}/usr/bin/
|
||||
cp ${PKG_DIR}/scripts/sudo ${INSTALL}/usr/bin/
|
||||
cp ${PKG_DIR}/scripts/pastebinit ${INSTALL}/usr/bin/
|
||||
sed -e "s/@DISTRONAME@-@OS_VERSION@/${DISTRONAME}-$OS_VERSION/g" \
|
||||
-i ${INSTALL}/usr/bin/pastebinit
|
||||
ln -sf pastebinit ${INSTALL}/usr/bin/paste
|
||||
cp ${PKG_DIR}/scripts/vfd-clock ${INSTALL}/usr/bin/
|
||||
|
||||
|
@ -4,8 +4,6 @@
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
if [ -n "${PASTEUSR}" -a "${PASTEPWD}" ]; then
|
||||
cat "$@" | curl -F 'f:1=<-' ${PASTEUSR}:${PASTEPWD}@ix.io
|
||||
else
|
||||
cat "$@" | curl -F 'f:1=<-' http://ix.io
|
||||
fi
|
||||
token=$(echo "@DISTRONAME@-@OS_VERSION@" | sha256sum | cut -d ' ' -f 1)
|
||||
|
||||
cat "$@" | curl https://paste.libreelec.tv -F 'file=@-' -H "Authorization: Bearer ${token}"
|
||||
|
Reference in New Issue
Block a user