From: Thierry Parmentelat Date: Tue, 22 Jan 2013 07:12:48 +0000 (+0100) Subject: avoid using rpm X-Git-Tag: sfa-2.1-24~4^2~11 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=cd472760657ee0e60f929d4428cd497ac5de3b2f;p=sfa.git avoid using rpm --- diff --git a/init.d/sfa b/init.d/sfa index d5b0bb45..45b6981a 100755 --- a/init.d/sfa +++ b/init.d/sfa @@ -244,7 +244,7 @@ function db_start () { ######## Start up the server # 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 echo STARTING... service postgresql start >& /dev/null fi