We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a8a6b4 commit c400427Copy full SHA for c400427
rootfs/etc/cont-init.d/55-jdownloader2.sh
@@ -38,6 +38,14 @@ if [ -f /config/.fix_jd_install ]; then
38
rm /config/.fix_jd_install
39
fi
40
41
+# Remove JDownloader.jar if it has been corrupted.
42
+if [ -f /config/JDownloader.jar ]; then
43
+ if ! unzip -t /config/JDownloader.jar 2>/dev/null; then
44
+ echo "JDownloader.jar corrupted, removing."
45
+ rm /config/JDownloader.jar
46
+ fi
47
+fi
48
+
49
# Set default configuration on new install.
50
[ -f /config/JDownloader.jar ] || {
51
cp -v /defaults/JDownloader.jar /config/JDownloader.jar
0 commit comments