From 84891c976454296600fb4206964eb8f2dea2268f Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 22 Jan 2013 09:49:00 +0100 Subject: [PATCH] avoid using rpm - 2 more occurrences --- init.d/sfa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.d/sfa b/init.d/sfa index bde199de..31623144 100755 --- a/init.d/sfa +++ b/init.d/sfa @@ -160,7 +160,7 @@ function db_start () { # only if enabled [ "$SFA_DB_ENABLED" == 1 -o "$SFA_DB_ENABLED" == True ] || return - if ! rpm -q myplc >& /dev/null; then + if [ ! -f /etc/myplc-release ] ; then ######## standalone deployment - no colocated myplc @@ -281,7 +281,7 @@ function db_stop () { [ "$SFA_DB_ENABLED" == 1 -o "$SFA_DB_ENABLED" == True ] || return # not too nice, but.. when co-located with myplc we'll let it start/stop postgresql - if ! rpm -q myplc >& /dev/null ; then + if [ ! -f /etc/myplc-release ] ; then service postgresql stop >& /dev/null check MESSAGE=$"Stopping PostgreSQL server" -- 2.47.0