From d3d77fdccf1958d02aec5686a068ba58af7bba2d Mon Sep 17 00:00:00 2001 From: Ahmed Bilal Khalid Date: Wed, 28 Aug 2019 16:51:30 +0500 Subject: [PATCH] a --- app/api.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/api.py b/app/api.py index a439838..3751d33 100644 --- a/app/api.py +++ b/app/api.py @@ -38,12 +38,16 @@ 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=["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""") + args=["sed", "-i", "-e", + r"""'s/supervise_daemon_args="--chdir""" + r""" $ETCD_DATA_DIR"/supervise_daemon_args="--chdir $ETCD_DATA_DIR""" + r""" --pidfile /run/etcd.pid"/g' /etc/init.d/etcd"""]) # Change address of etcd op.add( subprocess.check_output, - args=["sed", "-i", "-e", r""""s/localhost/[2a0a:e5c0:0:2:0:b3ff:fe39:7994]/g" /etc/etcd/conf.yml'""") + 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,