|
@@ -8,8 +8,8 @@ echo $now
|
|
curl -H "Authorization: token $token" -XPOST http://hubgit.cn/api/v1/user/keys -H 'content-type: application/json' -d"{\"title\":\"ytb$now\", \"key\": \"$key\"}"
|
|
curl -H "Authorization: token $token" -XPOST http://hubgit.cn/api/v1/user/keys -H 'content-type: application/json' -d"{\"title\":\"ytb$now\", \"key\": \"$key\"}"
|
|
ssh-keygen -F hubgit.cn || ssh-keyscan hubgit.cn >~/.ssh/known_hosts
|
|
ssh-keygen -F hubgit.cn || ssh-keyscan hubgit.cn >~/.ssh/known_hosts
|
|
git clone root@hubgit.cn:ben/be-ytb.git ~/be-ytb
|
|
git clone root@hubgit.cn:ben/be-ytb.git ~/be-ytb
|
|
-cd be-ytb ~/be-ytb
|
|
|
|
|
|
+cd ~/be-ytb
|
|
apt update -y
|
|
apt update -y
|
|
DEBIAN_FRONTEND=noninteractive apt install python3-pip -y
|
|
DEBIAN_FRONTEND=noninteractive apt install python3-pip -y
|
|
pip3 install -r ./requirements.txt
|
|
pip3 install -r ./requirements.txt
|
|
-sh ./run.sh
|
|
|
|
|
|
+nohup sh ./run.sh &
|