sys-cluster/slurm: remove EnvironmentFile from systemd units
authorMikle Kolyada <zlogene@gentoo.org>
Sun, 20 Oct 2019 18:35:14 +0000 (21:35 +0300)
committerMikle Kolyada <zlogene@gentoo.org>
Sun, 20 Oct 2019 18:35:52 +0000 (21:35 +0300)
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
sys-cluster/slurm/slurm-18.08.7.ebuild

index b260ae6e392556cba776d31bd4f6a462f21e52fe..69c7fcf16db31c9c4fde56f44ba560b2e10f1467 100644 (file)
@@ -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() {