Skip to content
Snippets Groups Projects
Commit dac236d3 authored by Evili del Rio i Silvan's avatar Evili del Rio i Silvan
Browse files

create postgres role only if POSTGRES is enabled

parent a210c97c
No related branches found
No related tags found
No related merge requests found
...@@ -43,9 +43,12 @@ if [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALLED" ]; then ...@@ -43,9 +43,12 @@ if [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALLED" ]; then
echo "##### DIFF SETTINGS #####" 2>&1 | tee "$TEST_LOG" echo "##### DIFF SETTINGS #####" 2>&1 | tee "$TEST_LOG"
python "$MANAGE_FILE" diffsettings 2>&1 | tee "$TEST_LOG" python "$MANAGE_FILE" diffsettings 2>&1 | tee "$TEST_LOG"
# Create the role "postgres" expected by heroku and friens. # Create the role "postgres" expected by heroku and friens.
python "$MANAGE_FILE" dbshell <<EOF 2>&1 | tee "$TEST_LOG" if [ x"$POSTGRES_ENABLED" == xtrue ]
then
python "$MANAGE_FILE" dbshell <<EOF 2>&1 | tee "$TEST_LOG"
CREATE ROLE postgres SUPERUSER; CREATE ROLE postgres SUPERUSER;
EOF EOF
fi
${test_cmd} "$MANAGE_FILE" test 2>&1 | tee "$TEST_LOG" ${test_cmd} "$MANAGE_FILE" test 2>&1 | tee "$TEST_LOG"
TEST_STATUS="${PIPESTATUS[0]}" TEST_STATUS="${PIPESTATUS[0]}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment