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