Skip to content

Commit 1100734

Browse files
committed
centos6 doesn't use systemd
1 parent 6d87060 commit 1100734

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/centos6/entrypoint.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ cp -va /entrypoint.sh /data/last-build.1
6565

6666
mkdir -p /var/log/hubble_osquery/backuplogs
6767

68-
mkdir -p /usr/lib/systemd/system
68+
mkdir -p /etc/init.d
6969
mkdir -p /etc/profile.d
7070
mkdir -p /etc/hubble
7171

72-
cp -v /hubble_build/pkg/hubble.service /usr/lib/systemd/system/
72+
cp -v /hubble_build/pkg/hubble /etc/init.d
7373
cp -v /hubble_build/conf/hubble-profile.sh /etc/profile.d/
7474

7575
if [ -f /data/hubble ]
@@ -102,7 +102,7 @@ tar -cSPvvzf /data/hubblestack-${HUBBLE_VERSION}.tar.gz \
102102
--exclude opt/hubble/pyenv \
103103
/etc/hubble /opt/hubble /opt/osquery \
104104
/etc/profile.d/hubble-profile.sh \
105-
/usr/lib/systemd/system/hubble.service \
105+
/etc/init.d/hubble \
106106
/var/log/hubble_osquery/backuplogs \
107107
2>&1 | tee /hubble_build/rpm-pkg-start-tar.log
108108

@@ -133,8 +133,8 @@ scl enable rh-ruby23 'fpm -s dir -t rpm \
133133
--url ${HUBBLE_URL} \
134134
--description "${HUBBLE_DESCRIPTION}" \
135135
--rpm-summary "${HUBBLE_SUMMARY}" \
136-
--after-install /hubble_build/conf/afterinstall-systemd.sh \
137-
--after-upgrade /hubble_build/conf/afterupgrade-systemd.sh \
136+
--after-install /hubble_build/conf/afterinstall.sh \
137+
--after-upgrade /hubble_build/conf/afterupgrade.sh \
138138
--before-remove /hubble_build/conf/beforeremove.sh \
139139
etc/hubble opt usr /var/log/hubble_osquery/backuplogs'
140140

0 commit comments

Comments
 (0)