security-server: update recipe 45/25845/2
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Fri, 8 Aug 2014 10:04:08 +0000 (12:04 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Mon, 11 Aug 2014 07:50:30 +0000 (09:50 +0200)
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>
recipes-tizen/security-server/security-server.inc

index 4e9a77a..69a03a7 100644 (file)
@@ -153,7 +153,7 @@ do_install() {
 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
@@ -186,7 +186,7 @@ pkg_postrm_${PN}() {
 
     if [ $1 = 0 ]; then
         # unistall
-        systemctl daemon-reload
+        [ "x\$D" == "x" ] && systemctl daemon-reload
     fi
 
 }