#!/bin/bash

echo "Configure PostgreSQL"
echo "===================="

if [[ "$OSTYPE" == "darwin"* ]]; then
    echo "OS: MacOSX"
    initdb /usr/local/var/postgres -E utf8
    postgres -D /usr/local/var/postgres
elif [[ "$OSTYPE" == "linux-gnu" ]]; then
    echo -e "Are you using Ubuntu? (y/n) \c"
    read 
    if [ $REPLY == "y" ]; then
        echo "TO DO"
    fi
else
    echo "Unknow OS"
fi

./src/postgresql/setup_postgre_db.sh
#!/bin/bash

echo "Configure PostgreSQL"
echo "===================="

if [[ "$OSTYPE" == "darwin"* ]]; then
    echo "OS: MacOSX"
    initdb /usr/local/var/postgres -E utf8
    postgres -D /usr/local/var/postgres
elif [[ "$OSTYPE" == "linux-gnu" ]]; then
    echo "To do"
else
    echo "Unknow OS"
fi

./src/postgresql/setup_postgre_db.sh
Add to do to launch postgres
Add to do to launch postgres
