aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/packaging/deb/debian.rules
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-03 17:47:53 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-03 17:47:55 +0200
commit866c50d4a927396288c37d8f59b3b8913ac49eac (patch)
tree7de3cd9f109bdb43c4dbd1d4a61a299eb319a183 /conf.d/packaging/deb/debian.rules
parent2c925773bcc68b577f1cd614754efea83954e378 (diff)
Don't enable xds-agent service during install
Installation is processed as root (sudoer) and consequently enabling "manually" (by creating link) xds-agent service during install is not a good idea. The only viable solution is to well document how user should enable it as a user systemd service, IOW: systemctl --user enable xds-agent.service Change-Id: Iba1f3bb501c099606b53d6cf39239af499787aa7 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'conf.d/packaging/deb/debian.rules')
-rw-r--r--conf.d/packaging/deb/debian.rules2
1 files changed, 0 insertions, 2 deletions
diff --git a/conf.d/packaging/deb/debian.rules b/conf.d/packaging/deb/debian.rules
index b768ce6..c6c7bd3 100644
--- a/conf.d/packaging/deb/debian.rules
+++ b/conf.d/packaging/deb/debian.rules
@@ -63,8 +63,6 @@ install: build
mkdir -p $(DEB_BASE_DIR)/etc/default $(DEB_BASE_DIR)/etc/xds/agent
cp $(DEB_INSTALL_XDS_DIR)/conf.d/etc/default/xds-agent $(DEB_BASE_DIR)/etc/default/
cp $(DEB_INSTALL_XDS_DIR)/conf.d/etc/xds/agent/* $(DEB_BASE_DIR)/etc/xds/agent/
- mkdir -p $(DEB_BASE_DIR)/etc/systemd/user/multi-user.target.wants
- ln -s /usr/lib/systemd/user/xds-agent.service $(DEB_BASE_DIR)/etc/systemd/user/multi-user.target.wants/
# Add XDS in user's PATH
mkdir -p $(DEB_BASE_DIR)/etc/profile.d