aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql73/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql73/scripts')
-rw-r--r--databases/postgresql73/scripts/createuser16
1 files changed, 8 insertions, 8 deletions
diff --git a/databases/postgresql73/scripts/createuser b/databases/postgresql73/scripts/createuser
index 4c24a164fbd6..ceb99626e648 100644
--- a/databases/postgresql73/scripts/createuser
+++ b/databases/postgresql73/scripts/createuser
@@ -10,8 +10,8 @@ if( $> ) {
exit 1;
}
-if( getpwnam( "postgres" ) ) {
- ( $null, $null, $pgUID ) = getpwnam( "postgres" );
+if( getpwnam( "pgsql" ) ) {
+ ( $null, $null, $pgUID ) = getpwnam( "pgsql" );
} else {
$pgUID = 70;
while( getpwuid( $pgUID ) ) {
@@ -19,20 +19,20 @@ if( getpwnam( "postgres" ) ) {
}
}
-if( getgrnam( "postgres" ) ) {
- ( $null, $null, $pgGID ) = getgrnam( "postgres" );
+if( getgrnam( "pgsql" ) ) {
+ ( $null, $null, $pgGID ) = getgrnam( "pgsql" );
} else {
$pgGID = 70;
while( getgrgid( $pgGID ) ) {
$pgGID++;
}
- &append_file( "/etc/group", "postgres:*:$pgGID:" );
+ &append_file( "/etc/group", "pgsql:*:$pgGID:" );
}
-print "postgres user using uid $pgUID\n";
-print "postgres user using gid $pgGID\n";
+print "pgsql user using uid $pgUID\n";
+print "pgsql user using gid $pgGID\n";
-system( "/usr/bin/chpass -a \"postgres:*:$pgUID:$pgGID::0:0:Postgres95 pseudo-user:$ENV{'PREFIX'}/postgres95:/bin/sh\"" );
+system( "/usr/bin/chpass -a \"pgsql:*:$pgUID:$pgGID::0:0:PostgreSQL pseudo-user:$ENV{'PREFIX'}/pgsql:/bin/sh\"" );
sub append_file {
local($file,@list) = @_;
an> * Now gettext 0.12.1 is gettext-old.trevor2004-01-241-2/+2 * - don't clobber any given LDFLAGSdinoex2003-09-031-2/+2 * Bump the PORTREVISION for the ports directly affected by the gettext upgrade.marcus2003-08-271-0/+1 * Chase the libintl.so shared lib version.marcus2003-08-251-1/+1 * Update to 1.4.1, and change MAINTAINER address.nork2003-05-225-12/+31 * De-pkg-comment.knu2003-02-212-1/+1 * Now that AUTOCONF and friends contain slashes in them, use a separatorknu2002-11-291-6/+7 * Chase shlib rev of devel/gettextade2002-08-021-1/+1 * moving saslv1 includes files to make it easier to add saslv2ume2002-07-291-1/+1 * Update to 1.4pat2002-06-2411-124/+197 * gettext upgrade uber-patch (stage 3)ade2002-04-131-2/+3 * Stage 1 of gettext update.ade2002-03-161-2/+2 * o update to 1.2.5.1.sf2002-01-172-13/+24 * o USE_AUTO* police sweeplioux2001-12-03