Skip to content

Commit

Permalink
Fix variables
Browse files Browse the repository at this point in the history
  • Loading branch information
cvlc authored Apr 14, 2022
1 parent 1d4704c commit d6c235b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloudinit/userdata-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ useradd -U -M -s /dev/null etcd
mkdir -p /etc/ssl/etcd
chown -R etcd:etcd /etc/ssl/etcd
chmod -R 700 /etc/ssl/etcd
curl -L -o /tmp/etcd-v"$etcd_version"-linux-amd64.tar.gz "$etcd_url"
curl -L -o "/tmp/etcd-v${etcd_version}-linux-amd64.tar.gz" "${etcd_url}"

tar xvf /tmp/etcd-v"$etcd_version"-linux-amd64.tar.gz -C /tmp
tar xvf "/tmp/etcd-v${etcd_version}-linux-amd64.tar.gz" -C /tmp

mv /tmp/etcd-v"$etcd_version"-linux-amd64/{etcd,etcdctl,etcdutl} /usr/local/bin
mv "/tmp/etcd-v${etcd_version}-linux-amd64/"{etcd,etcdctl,etcdutl} /usr/local/bin

mkdir -p /var/lib/etcd/
chown -R etcd:etcd /var/lib/etcd
Expand Down

0 comments on commit d6c235b

Please sign in to comment.