feat: add etcd build
Build / build-9 (pull_request) Successful in 1m18s
Build / build-8 (pull_request) Successful in 1m33s

- create rpm for etcd, etcdctl and etcdutl
- manage systemd service for etcd
This commit is contained in:
2025-01-26 14:50:12 +11:00
parent 80d648ee95
commit c7b8fb9fb5
8 changed files with 116 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
systemctl daemon-reload
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
rm -f /usr/lib/systemd/system/etcd.service
systemctl daemon-reload
+5
View File
@@ -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
+2
View File
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
systemctl stop etcd.service