summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2019-10-20 21:35:14 +0300
committerMikle Kolyada <zlogene@gentoo.org>2019-10-20 21:35:52 +0300
commit75377bdf192a71ab1c742c59706eec073179d5b6 (patch)
tree178f67ac27d6cf71e3277b0b40e3a2b2b1a97623 /sys-cluster
parentapp-arch/file-roller-3.32: update packages.match mapping (diff)
downloadgentoo-75377bdf192a71ab1c742c59706eec073179d5b6.tar.gz
gentoo-75377bdf192a71ab1c742c59706eec073179d5b6.tar.bz2
gentoo-75377bdf192a71ab1c742c59706eec073179d5b6.zip
sys-cluster/slurm: remove EnvironmentFile from systemd units
Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/slurm/slurm-18.08.7.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-cluster/slurm/slurm-18.08.7.ebuild b/sys-cluster/slurm/slurm-18.08.7.ebuild
index b260ae6e3925..69c7fcf16db3 100644
--- a/sys-cluster/slurm/slurm-18.08.7.ebuild
+++ b/sys-cluster/slurm/slurm-18.08.7.ebuild
@@ -216,6 +216,12 @@ src_install() {
# install systemd files
systemd_newtmpfilesd "${FILESDIR}/slurm.tmpfiles" slurm.conf
systemd_dounit etc/slurmd.service etc/slurmctld.service etc/slurmdbd.service
+
+ cd "${D}"/lib/systemd/system || die
+
+ for file in slurm*; do
+ sed -i -e '/^EnvironmentFile=.*/d' ${file} || die
+ done
}
pkg_preinst() {