浏览代码

bin install test

zjcqoo 6 年之前
父节点
当前提交
5aa22a40a5
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      i.sh

+ 13 - 0
i.sh

@@ -0,0 +1,13 @@
+#!/usr/bin/env sh
+
+CDN=https://cdn.jsdelivr.net/gh/etherdream/jsproxy-bin@master/dist/
+DST=/home/jsproxy/setup.sh
+
+
+groupadd nobody
+useradd jsproxy -g nobody --create-home
+
+curl -s "$CDN/setup.sh" -o $DST
+chmod +x $DST
+
+su - jsproxy -c $DST