|
|
@@ -43,7 +43,7 @@ Class: BASE
|
|
|
Group: Database
|
|
|
License: GPL
|
|
|
Version: %{V_postgresql}
|
|
|
-Release: 20050118
|
|
|
+Release: 20050121
|
|
|
|
|
|
# package options
|
|
|
%option with_server yes
|
|
|
@@ -543,11 +543,12 @@ AutoReqProv: no
|
|
|
%endif
|
|
|
su - %{l_rusr} -c \
|
|
|
"LC_CTYPE=C; export LC_CTYPE; umask 022; \
|
|
|
- echo \"$l_pgpass\" >$RPM_INSTALL_PREFIX/var/postgresql/db/pw; \
|
|
|
+ rm -rf $RPM_INSTALL_PREFIX/var/postgresql/db/*; \
|
|
|
+ echo $l_pgpass >$RPM_INSTALL_PREFIX/var/postgresql/run/pw; \
|
|
|
$RPM_INSTALL_PREFIX/bin/pg_initdb \
|
|
|
- -U $l_pguser --pwfile=$RPM_INSTALL_PREFIX/var/postgresql/db/pw \
|
|
|
+ -U $l_pguser --pwfile=$RPM_INSTALL_PREFIX/var/postgresql/run/pw \
|
|
|
-D $RPM_INSTALL_PREFIX/var/postgresql/db; \
|
|
|
- rm -f $RPM_INSTALL_PREFIX/var/postgresql/db/pw" 2>&1 |\
|
|
|
+ rm -f $RPM_INSTALL_PREFIX/var/postgresql/run/pw" 2>&1 |\
|
|
|
$RPM_INSTALL_PREFIX/lib/openpkg/shtool prop \
|
|
|
-p "Creating initial PostgreSQL DB in $RPM_INSTALL_PREFIX/var/postgresql/db"
|
|
|
|
|
|
@@ -568,10 +569,11 @@ AutoReqProv: no
|
|
|
( echo "An initial PostgreSQL DB was created with the two standard"
|
|
|
echo "databases 'template0' and 'template1'. The owner of both"
|
|
|
echo "is the DB user '$l_pguser'. Its initial password is '$l_pgpass'."
|
|
|
- echo "After starting PostgreSQL you should change this as soon as"
|
|
|
- echo "possible with the following command:"
|
|
|
- echo "\$ $RPM_INSTALL_PREFIX/bin/psql -U $l_pguser -d template1 \\"
|
|
|
- echo " -c \"ALTER USER $l_pguser WITH PASSWORD '<new-password>'\""
|
|
|
+ echo "After starting PostgreSQL with"
|
|
|
+ echo " \$ $RPM_INSTALL_PREFIX/etc/rc postgresql start"
|
|
|
+ echo "you should immediately change this with the following command:"
|
|
|
+ echo " \$ $RPM_INSTALL_PREFIX/bin/psql -U $l_pguser -d template1 \\"
|
|
|
+ echo " -c \"ALTER USER $l_pguser WITH PASSWORD '<new-password>'\""
|
|
|
) | %{l_rpmtool} msg -b -t notice
|
|
|
|
|
|
# optionally link into unixODBC
|