New generated recipe: do not try to execute "systemctl daemon-reload"
when creating the image
Change-Id: I4956fa2c6d19ebd9fd0ec615f5f541c6315e55fa
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
pkg_postinst_${PN}() {
#!/bin/sh -e
- systemctl daemon-reload
+ [ "x\$D" == "x" ] && systemctl daemon-reload
if [ $1 = 1 ]; then
# installation
systemctl start security-server.service
if [ $1 = 0 ]; then
# unistall
- systemctl daemon-reload
+ [ "x\$D" == "x" ] && systemctl daemon-reload
fi
}