-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Unlock all sites in 7 steps
tangdou1 edited this page Jan 18, 2019
·
3 revisions
- Enter your Debian system as root user
- Make sure your PC or VPS has installed sqlite3 and curl
- Make sure you have visted the site
1LtvsjbtQ2tY7SCtCZzC4KhErqEK3bXD4n
- run
vi seedall.sh
- write and save (change the
ZERO_DIR
,ZERO_HOST
,andHOST_PORT
, if neccessary )
#!/bin/sh
ZERO_DIR=~/ZeroNet-master
ZERO_HOST=127.0.0.1
HOST_PORT=43110
APP_ID=1LtvsjbtQ2tY7SCtCZzC4KhErqEK3bXD4n
ALL_SITES=`sqlite3 $ZERO_DIR/data/$APP_ID/data/zerosites.db "select address from sites;"`
for SITE in $ALL_SITES; do
echo Check site $SITE
curl -H "Accept: text/html" --silent http://$ZERO_HOST:$HOST_PORT/$SITE > /dev/null
done
- run
chmod 777 seedall.sh
- run
./seedall.sh