Delete rc2patcher

This commit is contained in:
Kjeld Schouten-Lebbing 2022-02-28 00:00:25 +01:00 committed by GitHub
parent 84eb99c433
commit 45f8134b8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 20 deletions

View File

@ -1,20 +0,0 @@
#!/usr/bin/env bash
set -eu
echo ""
echo ""
echo -e "\033[1mTrueCharts HotPatcher for TrueNAS SCALE RC2\033[0m"
echo "This tool is going to patch your system to fix performance of the Apps interface..."
echo ""
sleep 5
echo "---"
echo -e "\033[1mApplying HotPatch 1\033[0m"
( wget -q -P /tmp https://github.com/truecharts/apps/raw/master/tools/RC2-HP1.deb && echo "download completed" || echo "download failed" ) && ( dpkg -i /tmp/RC2-HP1.deb > /dev/null && echo "patch completed" || echo "patch failed" ) && rm -rf /tmp/RC2-HP1.deb
echo ""
sleep 5
echo "---"
echo -e "\033[1mApplying HotPatch 2\033[0m"
( wget -q -P /tmp https://github.com/truecharts/apps/raw/master/tools/RC2-HP2.patch && echo "download completed" || echo "download failed" ) && ( patch -N -s -p0 -d /usr/lib/python3/dist-packages/middlewared/ < /tmp/RC2-HP2.patch > /dev/null && echo "patch completed" || echo "patch failed, did you install it previously already?" ) && rm -rf /tmp/RC2-HP2.patch
echo "Restarting Middleware..." && systemctl restart middlewared
sleep 10
echo "Patching completed successfully."