Skip to content

Commit 0f4cd4e

Browse files
devanbenzbnpfeife
andauthored
feat: Updates post-install for linux package builds (#26893) (#26903)
Co-authored-by: Brandon Pfeifer <[email protected]>
1 parent 9d3d0c2 commit 0f4cd4e

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.circleci/packages/config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,15 @@ packages:
5555
group: root
5656
perms: 0755
5757
target: usr/lib/influxdb/scripts/influxd-systemd-start.sh
58+
59+
- owner: root
60+
group: root
61+
perms: 0644
62+
target: lib/systemd/system/influxdb.service
5863
deb_recommends:
5964
- influxdb2-cli
6065
conflicts:
6166
- influxdb
6267
depends:
6368
- curl
64-
source: .circleci/packages/influxdb2
69+
source: .circleci/packages/influxdb2

.circleci/packages/influxdb2/control/post-install

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ function install_init {
1313
}
1414

1515
function install_systemd {
16-
cp -f $SCRIPT_DIR/influxdb.service /lib/systemd/system/influxdb.service
16+
# Service file is now installed directly by RPM - just enable it
17+
systemctl daemon-reload
1718
systemctl enable influxdb
1819
}
1920

.circleci/packages/influxdb2/control/post-uninstall

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
function disable_systemd {
44
systemctl disable influxdb
5-
rm -f /lib/systemd/system/influxdb.service
65
}
76

87
function disable_update_rcd {

0 commit comments

Comments
 (0)