Blame SOURCES/initdb.sh

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