# 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
check
fi
check
- # mention sfaadmin.py instead of just sfaadmin for people who do not install through rpm
+ # mention sfaadmin.py instead of just sfaadmin for safety
sfaadmin.py reg sync_db
MESSAGE=$"SFA: Checking for PostgreSQL server"
[ "$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"