aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql80-server/scripts
diff options
context:
space:
mode:
authorscrappy <scrappy@FreeBSD.org>1997-04-11 03:15:12 +0800
committerscrappy <scrappy@FreeBSD.org>1997-04-11 03:15:12 +0800
commit740691dc26e4b8ff41d912092da25a7bafb5454c (patch)
tree79b5ecc505e1c1428fe271c5c297633d536c30df /databases/postgresql80-server/scripts
parentda0fd2d1718536faafb04297c6e121790f74e336 (diff)
downloadfreebsd-ports-gnome-740691dc26e4b8ff41d912092da25a7bafb5454c.tar.gz
freebsd-ports-gnome-740691dc26e4b8ff41d912092da25a7bafb5454c.tar.zst
freebsd-ports-gnome-740691dc26e4b8ff41d912092da25a7bafb5454c.zip
Update postgresql port from v1.09 to v6.0 using files from PostgreSQL
port, which is going to be removed
Diffstat (limited to 'databases/postgresql80-server/scripts')
-rw-r--r--databases/postgresql80-server/scripts/createuser16
1 files changed, 8 insertions, 8 deletions
diff --git a/databases/postgresql80-server/scripts/createuser b/databases/postgresql80-server/scripts/createuser
index 4c24a164fbd6..ceb99626e648 100644
--- a/databases/postgresql80-server/scripts/createuser
+++ b/databases/postgresql80-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) = @_;