feat: add etcd build
- create rpm for etcd, etcdctl and etcdutl - manage systemd service for etcd
This commit is contained in:
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
systemctl daemon-reload
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
rm -f /usr/lib/systemd/system/etcd.service
|
||||
systemctl daemon-reload
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
groupadd --system etcd
|
||||
useradd --system --shell /sbin/nologin --no-create-home --home-dir /var/lib/etcd --gid etcd etcd
|
||||
mkdir -p /var/lib/etcd
|
||||
chown etcd:etcd /var/lib/etcd
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
systemctl stop etcd.service
|
||||
Reference in New Issue
Block a user