This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-06-01 09:17:44 +00:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
|
|
|
set -e # exit on first error
|
|
|
|
|
|
|
|
if [ -z "$1" ]; then
|
|
|
|
echo "Please provide a skylink to blacklist" && exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
for server in "germany.siasky.net" "us-east.siasky.net" "us-west.siasky.net" "helsinki.siasky.net" "siasky.dev";
|
|
|
|
do
|
2020-06-01 09:22:06 +00:00
|
|
|
echo "⌁ Blacklisting on ${server}"
|
|
|
|
ssh -q -t user@${server} 'curl -A Sia-Agent --user "":$(cat ~/.sia/apipassword) --data '"'"'{"add":["'$1'"]}'"'"' "localhost:9980/skynet/blacklist"'
|
2020-06-01 09:17:44 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
echo "✓ All portals succesfully blacklisted provided skylink"
|