mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
Add deprecation notice
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# par2cmdline-turbo - SABnzbd mod
|
# par2cmdline-turbo - SABnzbd mod
|
||||||
|
|
||||||
|
## par2cmdline-turbo is now included in the SABnzbd docker image and this mod has been deprecated
|
||||||
|
|
||||||
This mod adds the [par2cmdline-turbo](https://github.com/animetosho/par2cmdline-turbo) fork as a replacement for the standard par2cmdline package.
|
This mod adds the [par2cmdline-turbo](https://github.com/animetosho/par2cmdline-turbo) fork as a replacement for the standard par2cmdline package.
|
||||||
|
|
||||||
It is supported on both amd64 and aarch64 (arm64) platforms, but not armhf (arm32).
|
It is supported on both amd64 and aarch64 (arm64) platforms, but not armhf (arm32).
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
# This is an install script that is designed to run after init-mods-package-install
|
# This is an install script that is designed to run after init-mods-package-install
|
||||||
# so it can take advantage of packages installed
|
# so it can take advantage of packages installed
|
||||||
@@ -9,11 +10,22 @@ if apk list --installed -q | grep par2cmdline &> /dev/null; then
|
|||||||
apk del --purge -q par2cmdline
|
apk del --purge -q par2cmdline
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ARCH=$(uname -m)
|
if [[ -e "/usr/local/bin/par2" ]] && grep -q 'par2cmdline-turbo' <<< "$(/usr/local/bin/par2 -V)"; then
|
||||||
if [[ -d "/par2cmdline-turbo/${ARCH}" ]]; then
|
echo "┌─────────────────────────────────────────────────────────────────────────────┐"
|
||||||
echo "**** Installing par2cmdline-turbo ****"
|
echo "│ │"
|
||||||
cp -a /par2cmdline-turbo/${ARCH}/* /
|
echo "| par2cmdline-turbo is now included in the SABnzbd │"
|
||||||
rm -rf /par2cmdline-turbo
|
echo "| docker image and this mod has been deprecated. │"
|
||||||
|
echo "│ │"
|
||||||
|
echo "│ Please remove this mod from your setup as it will not be updated. |"
|
||||||
|
echo "│ │"
|
||||||
|
echo "└─────────────────────────────────────────────────────────────────────────────┘"
|
||||||
else
|
else
|
||||||
echo "**** par2cmdline-turbo already installed or platform unsupported ****"
|
ARCH=$(uname -m)
|
||||||
|
if [[ -d "/par2cmdline-turbo/${ARCH}" ]]; then
|
||||||
|
echo "**** Installing par2cmdline-turbo ****"
|
||||||
|
cp -a /par2cmdline-turbo/${ARCH}/* /
|
||||||
|
rm -rf /par2cmdline-turbo
|
||||||
|
else
|
||||||
|
echo "**** par2cmdline-turbo already installed or platform unsupported ****"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user