From ac1282c6cb4396b8a1aeac7c6fe2eac47102cc99 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 20 Jan 2022 11:26:07 +0100 Subject: [PATCH] Update 19-json_repair.sh --- .templates/19-json_repair.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.templates/19-json_repair.sh b/.templates/19-json_repair.sh index acd5f2cd2..2d07fd5df 100644 --- a/.templates/19-json_repair.sh +++ b/.templates/19-json_repair.sh @@ -42,13 +42,3 @@ if [ -f ${JSONTOCHECK} ]; then # Message bashio::log.info "Your settings.json was checked and seems perfectly normal!" fi - -# Repair structure -################ -#jq . -S $CONFIGDIR/settings.json | cat >temp.json && mv temp.json $CONFIGDIR/settings.json -#echo "Making sure settings.json structure is good" -#for KEYS in "incomplete-dir" "download-dir" "rpc-host-whitelist-enabled" "rpc-authentication-required" "rpc-username" "rpc-password" "rpc-whitelist-enabled" "rpc-whitelist"; do -# KEYSTHERE=$(jq "has(\"${KEYS}\")" $CONFIGDIR/settings.json) -# [ "$KEYSTHERE" != "true" ] && sed -i "3 i\"${KEYS}\": null," $CONFIGDIR/settings.json && echo "... $KEYS was missing, added" -#done -#jq . -S $CONFIGDIR/settings.json | cat >temp.json && mv temp.json $CONFIGDIR/settings.json