summaryrefslogtreecommitdiffstats
path: root/upgrade.in
blob: c5424947912859a9678706f7cd0d4a8b92b5a0f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# Legacy action script for "service postgresql upgrade"

# Find the name of the service
SERVICE_NAME=$(basename $(dirname "$0"))
if [ x"$SERVICE_NAME" = x. ]
then
    SERVICE_NAME=postgresql
fi

echo Hint: the preferred way to do this is now '"postgresql-setup upgrade"' >&2

/usr/bin/postgresql-setup upgrade "$SERVICE_NAME"

exit $?