diff options
author | Marc G. Fournier <scrappy@FreeBSD.org> | 1997-04-10 19:15:12 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@FreeBSD.org> | 1997-04-10 19:15:12 +0000 |
commit | 3c5198c1f3d64c80acffd44e32192862950c4d8b (patch) | |
tree | caa735167d43e5b13e9285504017fc687155bd51 /databases/postgresql74-server/scripts | |
parent | fix handling of builtin limit command. (diff) |
Update postgresql port from v1.09 to v6.0 using files from PostgreSQL
port, which is going to be removed
Notes
Notes:
svn path=/head/; revision=6177
Diffstat (limited to 'databases/postgresql74-server/scripts')
-rw-r--r-- | databases/postgresql74-server/scripts/createuser | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/databases/postgresql74-server/scripts/createuser b/databases/postgresql74-server/scripts/createuser index 4c24a164fbd6..ceb99626e648 100644 --- a/databases/postgresql74-server/scripts/createuser +++ b/databases/postgresql74-server/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) = @_; |