Skip to content

Commit

Permalink
Retry FlareSolverr url fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 committed Jan 24, 2024
1 parent e33afc1 commit d924caa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/startup_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ sed -i -r "s/server.backupTTL = (.*)/server.backupTTL = ${BACKUP_TTL:-\1}/" /hom
# cloudflare bypass
# escape url for sed
if [ -z ${FLARESOLVERR_URL+x} ]; then
export FLARESOLVERR_URL=$(echo "${FLARESOLVERR_URL}" | sed 's/[\/&]/\\&/g')
FLARESOLVERR_URL=$(echo "${FLARESOLVERR_URL}" | sed 's/[\/&]/\\&/g')
export FLARESOLVERR_URL
fi
sed -i -r "s/server.flareSolverrEnabled = (.*)/server.flareSolverrEnabled = ${FLARESOLVERR_ENABLED:-\1}/" /home/suwayomi/.local/share/Tachidesk/server.conf
sed -i -r "s/server.flareSolverrUrl = \"(.*)\"/server.flareSolverrUrl = \"${FLARESOLVERR_URL:-\1}\"/" /home/suwayomi/.local/share/Tachidesk/server.conf
Expand Down

0 comments on commit d924caa

Please sign in to comment.