jsproxy/i.sh

13 lines
269 B
Bash
Raw Normal View History

2019-05-14 09:08:37 +00:00
#!/usr/bin/env sh
2019-05-14 09:35:17 +00:00
SRC=https://raw.githubusercontent.com/EtherDream/jsproxy-bin/master/setup.sh
2019-05-14 09:08:37 +00:00
DST=/home/jsproxy/setup.sh
groupadd nobody
useradd jsproxy -g nobody --create-home
2019-05-14 09:14:34 +00:00
echo "download main script ..."
2019-05-14 09:35:17 +00:00
curl -s $SRC -o $DST
2019-05-14 09:08:37 +00:00
2019-05-14 09:35:17 +00:00
chmod +x $DST
2019-05-14 09:08:37 +00:00
su - jsproxy -c $DST