Revision: 16370 http://gar.svn.sourceforge.net/gar/?rev=16370&view=rev Author: guengel Date: 2011-12-04 20:15:42 +0000 (Sun, 04 Dec 2011) Log Message: ----------- postgresql/branches/postgresql-8.3-raos: Renamed to CSWpostgresql-server.postinstall.tmp
Removed Paths: ------------- csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/files/CSWpostgresql-83.postinstall Deleted: csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/files/CSWpostgresql-83.postinstall =================================================================== --- csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/files/CSWpostgresql-83.postinstall 2011-12-04 20:14:24 UTC (rev 16369) +++ csw/mgar/pkg/postgresql/branches/postgresql-8.3-raos/files/CSWpostgresql-83.postinstall 2011-12-04 20:15:42 UTC (rev 16370) @@ -1,39 +0,0 @@ -#!/bin/sh -# vim:set ft=sh: -# -# $Id$ -# -# Initialize the database cluster if it hasn't been initialized before. - -# Read in the user configuration file -[ -s /opt/csw/etc/postgresql.conf ] && . /opt/csw/etc/postgresql.conf -[ -s @sysconfdir@/postgresql.conf ] && . @sysconfdir@/postgresql.conf - -PGDATA=@PGDATA@ -PGINIT=@bindir@/initdb - -initialize_cluster() { - chown postgres "${PGDATA}" - chmod 0700 "${PGDATA}" - echo "Initializing PostgreSQL database..." - su postgres -c "\"${PGINIT}\" -D \"${PGDATA}\" -E utf-8" -} - -if [ `ls -l ${PGDATA} 2>/dev/null | wc -l` -eq 1 ]; then - initialize_cluster -else - echo "The database cluster seems to be initialized already." -fi - -if [ -x /usr/sbin/svcadm ]; then - fmri="cswpostgres_@VERSION_NODOT@" - echo "Enabling the ${fmri} service in SMF" - svcadm clear "${fmri}" - svcadm enable "${fmri}" -else - initscript="/etc/opt/csw/init.d/cswpostgres_@VERSION_NODOT@" - echo "Issuing ${initscript} start" - "${initscript}" start -fi - -exit 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ devel mailing list devel@lists.opencsw.org https://lists.opencsw.org/mailman/listinfo/devel