699f87
#!/bin/sh
699f87
#
699f87
# Legacy action script for "service postgresql upgrade"
699f87
699f87
# Find the name of the service
699f87
SERVICE_NAME=$(basename $(dirname "$0"))
699f87
if [ x"$SERVICE_NAME" = x. ]
699f87
then
699f87
    SERVICE_NAME=postgresql
699f87
fi
699f87
699f87
echo Hint: the preferred way to do this is now '"postgresql-setup upgrade"' >&2
699f87
699f87
/usr/bin/postgresql-setup upgrade "$SERVICE_NAME"
699f87
699f87
exit $?