meta-tizen: Fix post install section for cynara package 64/42464/1
authorBaptiste Durand <baptiste.durand@open.eurogiciel.org>
Mon, 4 May 2015 12:00:30 +0000 (14:00 +0200)
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Mon, 29 Jun 2015 08:57:05 +0000 (10:57 +0200)
(From meta-tizen rev: fa3243950ad3326c6842414fa675fe5a928f0516)

Change-Id: Iada42292d7a7e555a445a78f3171fba2ef9e4b25
Signed-off-by: Baptiste Durand <baptiste.durand@open.eurogiciel.org>
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
meta-tizen/meta-tizen-common-base/recipes-security/cynara/cynara.inc

index ab659f9..d507b06 100644 (file)
@@ -255,7 +255,7 @@ pkg_postinst_${PN}() {
     ### setcap/getcap binary are useful. To use them you must install libcap and libcap-tools packages
     ### In such case uncomment Requires with those packages
     systemctl daemon-reload
-    if [ $1 = 1 ]; then
+    if [ $1 == 1 ]; then
         systemctl enable cynara.service
     fi
     chsmack -a System ${localstatedir}/cynara/
@@ -342,7 +342,7 @@ pkg_postrm_libcynara-admin() {
 pkg_postrm_${PN}() {
     #!/bin/sh -e
 
-    if [ $1 = 0 ]; then
+    if [ $1 == 0 ]; then
         $D${prefix}/sbin/cynara/cynara-db-migration uninstall -f ${PV}
         userdel -r cynara > /dev/null 2>&1
         groupdel cynara > /dev/null 2>&1