Skip to content

Commit f729338

Browse files
authored
Update run.sh
1 parent f23109d commit f729338

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

run.sh

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# By Alphabug
22
# Github https://github.com/AlphabugX/csOnvps
3-
3+
mkdir Alphabug_CS
4+
echo Alphabug_CS
45
function radom_key(){
56
KEY=`uuid | md5sum |awk -F' ' '{ print $1}'`
67
echo $KEY
@@ -57,15 +58,19 @@ function get_random_port {
5758
done
5859
}
5960
get_random_port 10000 65534;
60-
61+
install_log = ""
6162
# 配置teamserver
6263
sed -i 's/SET_TEAMSERVER_PORT/$PORT/g' teamserver
6364
sed -i 's/SET_TEAMSERVER_KEY/$KEYPASS/g' teamserver
64-
echo "[+] Teamserver IP:" $IP
65-
echo "[+] Teamserver Port:" $PORT
66-
echo "[+] Teamserver Password:" $PASSWORD
67-
echo "[+] Teamserver keyStorePassword:" $KEYPASS
65+
echo "[+] Teamserver IP:" $IP >> install_log
66+
echo "[+] Teamserver Port:" $PORT >> install_log
67+
echo "[+] Teamserver Password:" $PASSWORD >> install_log
68+
echo "[+] Teamserver keyStorePassword:" $KEYPASS >> install_log
6869
nohup ./teamserver $IP $PASSWORD &
69-
PID=`sudo ps -ef | grep $PASSWORD |awk -F" " '{ print $2 }' |tr "\n" " "`
70-
echo "[+] Teamserver PID:" $PID
71-
echo "[*] Teamserver stop command: kill -KILL " $PID
70+
PID=`sudo ps -ef | grep $PASSWORD |awk -F" " '{ print $2 }' |tr "\n" " "` >> install_log
71+
echo "[+] Teamserver PID:" $PID >> install_log
72+
echo "[*] Teamserver stop command: kill -KILL " $PID >> install_log
73+
echo "[!] Remove Sun JDK :" >> install_log
74+
echo Zm9yIGl0ZW0gaW4gYGxzIC1sc2EgL3Vzci9iaW4vIHxncmVwIGpkayB8YXdrIC1GIiAiICd7IHByaW50ICQxMH0nYDsgZG8gZWNobyAiRGVsIC91c3IvYmluLyIkaXRlbTtybSAtcmYgIi91c3IvYmluLyIkaXRlbTtkb25lCg== | base64 -d >> install_log
75+
cat $install_log
76+
echo "[+] Saved to "$install_log

0 commit comments

Comments
 (0)