Fix post install section for cynara package 10/41510/2
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>
Tue, 16 Jun 2015 12:31:25 +0000 (14:31 +0200)
Change-Id: I7acce4084ca6848902872d74903d5f1d7e234a16
Signed-off-by: Baptiste Durand <baptiste.durand@open.eurogiciel.org>
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