a
This commit is contained in:
parent
e57772f19e
commit
a4dec6114e
1 changed files with 2 additions and 4 deletions
|
@ -38,14 +38,12 @@ def setup(path, auth_name, auth_seed, auth_realm, realm_allowed, otp_server):
|
|||
# Add --pidfile argument to supervise daemon
|
||||
op.add(
|
||||
subprocess.check_output,
|
||||
args=r"""sed -i -e 's/supervise_daemon_args="--chdir $ETCD_DATA_DIR"/supervise_daemon_args="--chdir $ETCD_DATA_DIR --pidfile /run/etcd.pid"/g' /etc/init.d/etcd""".split(),
|
||||
)
|
||||
args=["sed", "-i", "-e", r"""'s/supervise_daemon_args="--chdir $ETCD_DATA_DIR"/supervise_daemon_args="--chdir $ETCD_DATA_DIR --pidfile /run/etcd.pid"/g' /etc/init.d/etcd""")
|
||||
|
||||
# Change address of etcd
|
||||
op.add(
|
||||
subprocess.check_output,
|
||||
args=r'sed -i -e "s/localhost/[2a0a:e5c0:0:2:0:b3ff:fe39:7994]/g" /etc/etcd/conf.yml'.split(),
|
||||
)
|
||||
args=["sed", "-i", "-e", r""""s/localhost/[2a0a:e5c0:0:2:0:b3ff:fe39:7994]/g" /etc/etcd/conf.yml'""")
|
||||
|
||||
# Start and Enable etcd service
|
||||
op.add(subprocess.check_output,
|
||||
|
|
Loading…
Reference in a new issue