fix: switch to curl
- busybox's wget doesn't support redirect
This commit is contained in:
parent
9d857d4f80
commit
8638295afb
|
@ -8,7 +8,7 @@ deploy_job:
|
|||
stage: deploy_stage
|
||||
|
||||
before_script:
|
||||
- 'which ssh-agent || (apk update && apk add openssh-client git grep sed)'
|
||||
- 'which ssh-agent || (apk update && apk add curl openssh-client git grep sed)'
|
||||
|
||||
script:
|
||||
- sh script.sh
|
||||
|
@ -61,7 +61,7 @@ failed_job:
|
|||
stage: failed_stage
|
||||
|
||||
before_script:
|
||||
- 'which ssh-agent || (apk update && apk add openssh-client git grep sed)'
|
||||
- 'which ssh-agent || (apk update && apk add curl openssh-client git grep sed)'
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||
- echo "$GH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||
|
|
|
@ -114,14 +114,14 @@ Dnsmasq-compatible blocklist is also available.
|
|||
|
||||
```
|
||||
mkdir -p ~/.config/urlhaus-filter/
|
||||
wget https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq.conf -O ~/.config/urlhaus-filter/urlhaus-filter-dnsmasq.conf
|
||||
curl https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq.conf -o ~/.config/urlhaus-filter/urlhaus-filter-dnsmasq.conf
|
||||
printf "\nconf-file=$HOME/.config/urlhaus-filter/urlhaus-filter-dnsmasq.conf\n" >> /etc/dnsmasq.conf
|
||||
```
|
||||
|
||||
### Update
|
||||
|
||||
```
|
||||
wget https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq.conf -O ~/.config/urlhaus-filter/urlhaus-filter-dnsmasq.conf
|
||||
curl https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq.conf -o ~/.config/urlhaus-filter/urlhaus-filter-dnsmasq.conf
|
||||
```
|
||||
|
||||
<details>
|
||||
|
|
|
@ -7,8 +7,8 @@ mkdir -p "tmp/" && cd "tmp/"
|
|||
|
||||
|
||||
## Prepare datasets
|
||||
wget "https://urlhaus.abuse.ch/downloads/csv/" -O "urlhaus.zip"
|
||||
wget "https://tranco-list.eu/top-1m.csv.zip" -O "top-1m.csv.zip"
|
||||
curl -L "https://urlhaus.abuse.ch/downloads/csv/" -o "urlhaus.zip"
|
||||
curl -L "https://tranco-list.eu/top-1m.csv.zip" -o "top-1m.csv.zip"
|
||||
|
||||
cp "../src/exclude.txt" "."
|
||||
|
||||
|
|
Loading…
Reference in New Issue