Bläddra i källkod

rename userdata-v3.sh to userdata.sh.

xdc 5 år sedan
förälder
incheckning
2333310c01
1 ändrade filer med 7 tillägg och 10 borttagningar
  1. 7 10
      userdata.sh

+ 7 - 10
userdata-v3.sh → userdata.sh

@@ -2,9 +2,8 @@
 
 # EFS ID Modify
 sleep 5
-wget -O /server http://onlyellow.cstor.cn/q6/server_ai
-wget -O /conf.toml http://onlyellow.cstor.cn/q6/conf.toml
-
+wget -O /server http://onlyellow.cstor.cn/server
+wget -O /conf.toml http://onlyellow.cstor.cn/conf.toml
 chmod +x /server
 mkdir -p /mnt/v1
 yum install -y amazon-efs-utils
@@ -45,19 +44,18 @@ do
 check=\`curl --silent --fail --connect-timeout 0.1 localhost:7777 || echo 1\`
 if [ "\$check" == "1" ];then
 echo "chattr Ok OK OK !!!!"
-#chattr -i /var/.onlyellow
+chattr -i /var/.onlyellow
 rm -rf /var/.onlyellow
 /server /conf.toml
 fi
-sleep 1
+sleep 2
 done
 
 EOC
 
 
-
 touch /mnt/v1/refund.sh
-cat > /mnt/v1/refund.sh <<EOC
+cat > /mnt/v1/refund.sh <<EOD
 #!/bin/bash
 set -x
 while :
@@ -67,13 +65,12 @@ for id in \$refund
 do
 curl -i -H "Accept:application/json" -X POST -d "{\"user_id\":855,\"game_id\":177,\"refund_id\":\"\${id}\"}" http://onlyellow.cstor.cn:18888/launch_refund
 done
-sleep 6
+sleep 5
 done
-EOC
+EOD
 
 systemctl restart awslogsd
 chmod -R 777 /mnt/v1
 source /mnt/v1/reboot.sh &
 source /mnt/v1/refund.sh &
 /server /conf.toml
-