Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed Feb 13, 2024
1 parent 8ca8628 commit 93fa43f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/scripts/10-ssl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ then
(( mustforce - lastforced > 0 )) && forceinstall="true" || true
date +%s > /run/nginx/.letsencrypt/.force-reinstall.lastforced
"${s6wrap[@]}" echo "Checking if SSL certificates must be reinstalled: Must reinstall if last install was before $(date -d "@$mustforce"). Last reinstall was at $(date -d "@$lastforced"). Will "
[[ "$forceinstall" == "true" ]] && echo "reinstall certificates." || echo "not reinstall certificates."
[[ "$forceinstall" == "true" ]] && "${s6wrap[@]}" echo "reinstall certificates." || "${s6wrap[@]}" echo "not reinstall certificates."
fi

# if there is a backup and $forceinstall is not true, restore it
Expand Down
6 changes: 3 additions & 3 deletions rootfs/etc/s6-overlay/scripts/30-blockbot
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ mv -f /root/ipmap /usr/local/bin >/dev/null 2>&1
if [[ -n "$BLOCKBOT" ]]
then
# shellcheck disable=SC2001
{ BLOCKLIST="$(sed 's/,/|/g' <<< "$BLOCKBOT")"
"${s6wrap[@]}" echo "Blocking these bots: $BLOCKBOT"
printf "map \$http_user_agent \$limit_bots {\n"
BLOCKLIST="$(sed 's/,/|/g' <<< "$BLOCKBOT")"
"${s6wrap[@]}" echo "Blocking these bots: $BLOCKBOT"
{ printf "map \$http_user_agent \$limit_bots {\n"
printf " default 0;\n"
printf " ~*(%s) 1;\n" "${BLOCKLIST// /}"
printf "}\n"
Expand Down

0 comments on commit 93fa43f

Please sign in to comment.