Skip to content

Commit

Permalink
Untar etcd as root and change ownership (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorhuertas committed Apr 6, 2020
1 parent 73e76d9 commit e5937df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/etcd-member.service
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ Environment="ETCD_PEER_TRUSTED_CA_FILE=/etc/etcd/ssl/ca.pem"
Environment="ETCD_PEER_CERT_FILE=/etc/etcd/ssl/node.pem"
Environment="ETCD_PEER_KEY_FILE=/etc/etcd/ssl/node-key.pem"

ExecStartPre=-/bin/sh -c "\
ExecStartPre=-+/bin/sh -c "\
test ! -f /opt/bin/etcd && \
test -f /opt/bin/etcd.tar.gz && \
tar --strip-components=1 -C /opt/bin \
-xzf /opt/bin/etcd.tar.gz etcd-${etcd_version}-linux-amd64/etcd"
-xzf /opt/bin/etcd.tar.gz etcd-${etcd_version}-linux-amd64/etcd && \
chown etcd:etcd /opt/bin/etcd"

ExecStart=/opt/bin/etcd

Expand Down

0 comments on commit e5937df

Please sign in to comment.