Skip to content

Commit

Permalink
Fixes #15567: rudder-pkg command in /opt/rudder/bin should not be cre…
Browse files Browse the repository at this point in the history
…ated in postinst but at build time
  • Loading branch information
Fdall committed Aug 23, 2019
1 parent 4071899 commit e485a28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions relay/sources/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ install: build

# rudder packaging
install -m 755 rudder-pkg/rudder-pkg $(DESTDIR)/opt/rudder/share/commands/package
ln -ns $(DESTDIR)/opt/rudder/share/commands/package $(DESTDIR)/opt/rudder/bin/rudder-pkg
install -m 755 rudder-pkg/rudder-pkg.conf $(DESTDIR)/opt/rudder/etc/rudder-pkg/rudder-pkg.conf
install -m 755 rudder-pkg/rudder_plugins_key.pub $(DESTDIR)/opt/rudder/etc/rudder-pkg/rudder_plugins_key.pub
install -m 644 autocomplete/rudder-pkg.sh $(DESTDIR)/etc/bash_completion.d/
Expand Down
3 changes: 0 additions & 3 deletions relay/sources/rudder-server-relay-postinst
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ systemctl stop "${APACHE}" >> ${LOG_FILE} || true
systemctl stop rudder-relayd >> ${LOG_FILE} || true
echo " Done"

# link rudder package to its old path
ln -s /opt/rudder/share/commands/package /opt/rudder/bin/rudder-pkg

# share directory with rudder-policy-reader
chgrp -R rudder-policy-reader /var/rudder/share
chmod 750 /var/rudder/share
Expand Down

0 comments on commit e485a28

Please sign in to comment.