Skip to content

Commit

Permalink
Dateien hochladen nach „source/usr/local/emhttp/plugins/un-get“
Browse files Browse the repository at this point in the history
  • Loading branch information
ich777 committed Oct 12, 2022
1 parent c6ec2c9 commit e5191aa
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions source/usr/local/emhttp/plugins/un-get/un-get
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ install_package() {
if [ "$(grep "${1%.*}" <<< "${INSTALLED_PKGS}")" ]; then
echo "Package $1 already installed, skipping!"
else
if [ "$(cat /tmp/un-get/checksums-${2} | grep "$1" | grep -E ".tbz|.tlz|.tgz|.txz" | grep -v -E ".*\.asc|.*\.md5" | awk '{print $1}')" == "$(md5sum /boot/extra/$1 | awk '{print $1}')" ]; then
if [ "$(cat /tmp/un-get/checksums-${2} | grep -w "$1" | grep -E ".tbz|.tlz|.tgz|.txz" | grep -v -E ".*\.asc|.*\.md5" | awk '{print $1}')" == "$(md5sum /boot/extra/$1 | awk '{print $1}')" ]; then
upgradepkg --install-new /boot/extra/$1
else
echo "Checksum error, please try to reinstall the package again!"
Expand Down Expand Up @@ -449,8 +449,8 @@ usage_remove() {

version() {
echo "Written by Christoph Hummer for unRAID."
echo "Version: 0.16"
echo "Date: 2022-10-02"
echo "Version: 0.17"
echo "Date: 2022-10-12"
echo "Dual-licensed under MIT or UNLICENSE."
exit 0
}
Expand Down Expand Up @@ -582,12 +582,20 @@ changelog() {
echo "Date: 2022-09-26"
echo
echo "- fixed bug where some packages would not download/install properly"
echo
echo "----------------------------------------"
echo
echo "Version: 0.16"
echo "Date: 2022-10-02"
echo
echo "- fixed bug in update routine where some packages won't update properly"
echo
echo "----------------------------------------"
echo
echo "Version: 0.17"
echo "Date: 2022-10-12"
echo
echo "- fixed bug in checksum routine where some packages won't installed"
}

if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
Expand Down

0 comments on commit e5191aa

Please sign in to comment.