|
|
|
@ -245,7 +245,7 @@ AutoReqProv: no
|
|
|
|
|
echo "which is a major version change. We expect a database incompatibility," |
|
|
|
|
echo "so we strongly recommend that you backup your existing database" |
|
|
|
|
echo "($RPM_INSTALL_PREFIX/var/postgresql/db/) first by running:" |
|
|
|
|
echo " \$ $RPM_INSTALL_PREFIX/bin/pg_migrate dump" |
|
|
|
|
echo " \$ $RPM_INSTALL_PREFIX/bin/pg_migrate dump" |
|
|
|
|
echo "Alternatively, if you want force this package to be installed without" |
|
|
|
|
echo "performing a database dump, run the following command before upgrading:" |
|
|
|
|
echo " \$ PG_MIGRATE=ignore; export PG_MIGRATE" |
|
|
|
@ -259,7 +259,7 @@ AutoReqProv: no
|
|
|
|
|
rm -f $RPM_INSTALL_PREFIX/var/posgresql/RESTART >/dev/null 2>&1 || true |
|
|
|
|
if [ ".`$l_prefix/etc/rc postgresql status 2>&1 | grep 'is running'`" != . ]; then |
|
|
|
|
echo "Shutting down currently running database engine." | %{l_rpmtool} msg -b -t notice |
|
|
|
|
$RPM_INSTALL_PREFIX/etc/rc postgresql stop |
|
|
|
|
$RPM_INSTALL_PREFIX/etc/rc postgresql stop |
|
|
|
|
touch $RPM_INSTALL_PREFIX/var/posgresql/RESTART |
|
|
|
|
sleep 4 |
|
|
|
|
fi |
|
|
|
@ -311,7 +311,7 @@ AutoReqProv: no
|
|
|
|
|
elif [ $1 -gt 1 ]; then |
|
|
|
|
if [ -f $RPM_INSTALL_PREFIX/var/posgresql/RESTART ]; then |
|
|
|
|
echo "Starting database engine again." | %{l_rpmtool} msg -b -t notice |
|
|
|
|
$RPM_INSTALL_PREFIX/etc/rc postgresql start |
|
|
|
|
$RPM_INSTALL_PREFIX/etc/rc postgresql start |
|
|
|
|
rm -f $RPM_INSTALL_PREFIX/var/posgresql/RESTART >/dev/null 2>&1 || true |
|
|
|
|
sleep 2 |
|
|
|
|
fi |
|
|
|
|