Explorar o código

add ec2-userdata.sh.

xdc %!s(int64=5) %!d(string=hai) anos
pai
achega
3da1fb4b38
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      ec2-userdata.sh

+ 10 - 0
ec2-userdata.sh

@@ -0,0 +1,10 @@
+
+#!/bin/bash
+sleep 5
+wget -O /root/server_demo http://onlyellow.cstor.cn/q1/server_demo
+wget -O /root/conf.toml http://onlyellow.cstor.cn/q1/conf.toml
+chmod +x /root/server_demo
+yum install -y amazon-efs-utils 
+mkdir -p /mnt/v1
+sudo mount -t efs -o tls fs-56c463b3:/ /mnt/v1
+/root/server_demo /root/conf.toml