Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-vp authored Feb 7, 2024
1 parent 333adb5 commit 52f12d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ echo "The OS release is: $release"
;;
esac


mkdir /usr/local/ir-waf
wget --no-check-certificate -O /usr/local/ir-waf/ir_rules.zip https://github.com/sh-vp/Ir-acc-WAF/releases/latest/download/ir_rules.zip
rm /usr/local/ir-waf/ir-waf.sh -rf
rm /usr/local/ir-waf/update.sh -rf
rm /usr/local/ir-waf/iran.txt -rf
rm /usr/local/ir-waf/cloudflare.txt -rf
rm /usr/bin/ir-waf -rf
mkdir /usr/local/ir-waf
wget --no-check-certificate -O /usr/local/ir-waf/ir_rules.zip https://github.com/sh-vp/Ir-acc-WAF/releases/latest/download/ir_rules.zip
if [[ ! -f "/usr/local/ir-waf/conf.txt" ]]; then
unzip -o /usr/local/ir-waf/ir_rules.zip -d /usr/local/ir-waf
else
Expand Down

0 comments on commit 52f12d8

Please sign in to comment.