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