This repository was archived by the owner on Oct 31, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 6262
6363# put the flannel config in etcd
6464curl -sf -L http://$FQDN_HOSTNAME :2379/v2/keys/flannel/network/config -X PUT --data-urlencode value@/tmp/flannel-network.json
65+
66+ # make sure ubuntu owns home dir
67+ chown ubuntu:ubuntu /home/ubuntu
68+
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ EXTERNAL_IP=$(curl -s -m 10 http://whatismyip.akamai.com/)
44NAMESPACE=$( echo -n " ${domain_name} " | sed " s/\.oraclevcn\.com//g" )
55FQDN_HOSTNAME=$( getent hosts $( ip route get 1 | awk ' {print $NF;exit}' ) | awk ' {print $2}' )
66
7+ # make sure ubuntu owns home dir
8+ chown ubuntu:ubuntu /home/ubuntu
9+
710# # create policy file that blocks autostart of services on install
811printf ' #!/bin/sh\necho "All runlevel operations denied by policy" >&2\nexit 101\n' > /tmp/policy-rc.d && chmod +x /tmp/policy-rc.d
912ETCD_LB=${etcd_lb}
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ EXTERNAL_IP=$(curl -s -m 10 http://whatismyip.akamai.com/)
44NAMESPACE=$( echo -n " ${domain_name} " | sed " s/\.oraclevcn\.com//g" )
55FQDN_HOSTNAME=$( getent hosts $( ip route get 1 | awk ' {print $NF;exit}' ) | awk ' {print $2}' )
66
7+ # make sure ubuntu owns home dir
8+ chown ubuntu:ubuntu /home/ubuntu
9+
710# pull instance metadata
811curl -sL --retry 3 http://169.254.169.254/opc/v1/instance/ | tee /tmp/instance_meta.json
912
You can’t perform that action at this time.
0 commit comments