xdc 5 лет назад
Родитель
Сommit
a7098d5952
1 измененных файлов с 6 добавлено и 8 удалено
  1. 6 8
      userdata-v3.sh

+ 6 - 8
userdata-v3.sh

@@ -2,18 +2,18 @@
 
 # EFS ID Modify
 sleep 5
-wget -O /root/server http://onlyellow.cstor.cn/q6/server_ai
-wget -O /root/conf.toml http://onlyellow.cstor.cn/q6/conf.toml
+wget -O /server http://onlyellow.cstor.cn/q6/server_ai
+wget -O /conf.toml http://onlyellow.cstor.cn/q6/conf.toml
 
-chmod +x /root/server
+chmod +x /server
 mkdir -p /mnt/v1
 yum install -y amazon-efs-utils
 
 sudo mount -t efs -o tls fs-0dfc5ae8:/ /mnt/v1
 aws configure set default.region cn-northwest-1
 aws logs create-log-group --log-group-name cloudlog
-cp /root/server /mnt/v1
-cp /root/conf.toml /mnt/v1
+cp /server /mnt/v1
+cp /conf.toml /mnt/v1
 yum install -y awslogs
 cat > /etc/awslogs/awscli.conf <<EOA
 [plugins]
@@ -75,7 +75,5 @@ systemctl restart awslogsd
 chmod -R 777 /mnt/v1
 source /mnt/v1/reboot.sh &
 source /mnt/v1/refund.sh &
-/root/server /root/conf.toml
-
-
+/server /conf.toml