Skip to content

Commit c18da05

Browse files
Check postgres os before proceeding with install (#3197)
* check postgres os before proceeding * use dc
1 parent 65779a7 commit c18da05

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install/set-up-and-migrate-database.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ until $dc exec postgres psql -U postgres -c "select 1" >/dev/null 2>&1 || [ $RET
99
sleep 1
1010
done
1111

12+
os=$($dc exec postgres cat /etc/os-release | grep 'ID=debian')
13+
if [[ -z $os ]]; then
14+
echo "Postgres image debian check failed, exiting..."
15+
exit 1
16+
fi
17+
1218
# Using django ORM to provide broader support for users with external databases
1319
$dcr web shell -c "
1420
from django.db import connection

0 commit comments

Comments
 (0)