Skip to content

Commit

Permalink
Retry FlareSolverr url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 committed Jan 24, 2024
1 parent ee9b536 commit e33afc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/startup_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ sed -i -r "s/server.backupTTL = (.*)/server.backupTTL = ${BACKUP_TTL:-\1}/" /hom

# cloudflare bypass
# escape url for sed
export FLARESOLVERR_URL=$(echo "${FLARESOLVERR_URL:-\1}" | sed 's/[\/&]/\\&/g')
if [ -z ${FLARESOLVERR_URL+x} ]; then
export FLARESOLVERR_URL=$(echo "${FLARESOLVERR_URL}" | sed 's/[\/&]/\\&/g')
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
sed -i -r "s/server.flareSolverrTimeout = (.*)/server.flareSolverrTimeout = ${FLARESOLVERR_TIMEOUT:-\1}/" /home/suwayomi/.local/share/Tachidesk/server.conf
Expand Down

0 comments on commit e33afc1

Please sign in to comment.