Skip to content

Commit 7f42c16

Browse files
authored
feat: Updates post-install for linux package builds (#26893) (#26902)
1 parent fe1bc35 commit 7f42c16

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.circleci/packages/config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ packages:
7777
group: root
7878
perms: 0755
7979
target: usr/lib/influxdb/scripts/influxd-systemd-start.sh
80+
81+
- owner: root
82+
group: root
83+
perms: 0644
84+
target: lib/systemd/system/influxdb.service
8085
rpm_attributes:
8186
- 750,influxdb,influxdb:/var/log/influxdb
8287
- 750,influxdb,influxdb:/var/lib/influxdb

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

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

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

.circleci/packages/influxdb/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 {

.circleci/packages/influxdb/fs/usr/lib/influxdb/scripts/influxdb.service renamed to .circleci/packages/influxdb/fs/lib/systemd/system/influxdb.service

File renamed without changes.

0 commit comments

Comments
 (0)