diff --git a/generate.sh b/generate.sh index 999103c..5e3e406 100755 --- a/generate.sh +++ b/generate.sh @@ -1,6 +1,5 @@ #!/bin/bash set -euxo pipefail -mkdir -p .temp/result git submodule update --init --recursive workdir=$(dirname "$0") @@ -15,13 +14,13 @@ mkdir -p "$build_dir" # Initialize antizapret data cd "$path_az" -patch < "$path_data/az-cyrillic-idn-fix.patch" +patch --forward < "$path_data/az-cyrillic-idn-fix.patch" || true bash update.sh bash parse.sh cd "$workdir" # Generate geoip.dat -cat "$path_data/geoip-generator-config.json" "$path_geoip/config.json" +cat "$path_data/geoip-generator-config.json" > "$path_geoip/config.json" mkdir -p "$path_geoip/data" cp "$path_az/result/iplist_all.txt" "$path_geoip/data/ru-blocked-ips-all" cp "$path_az/result/iplist_blockedbyip.txt" "$path_geoip/data/ru-blocked-ips-directblock"