fix: replace lokavaluto_postgres_1 by its variable

This commit is contained in:
Stéphan Sainléger
2024-11-25 16:06:07 +01:00
parent 076a7bb3eb
commit bb482c5a19
2 changed files with 8 additions and 8 deletions

View File

@@ -64,8 +64,8 @@ generate_sql_to_remove_commands() {
echo "UPGRADE: Start database preparation"
# Check POSTGRES container is running
if ! docker ps | grep -q "lokavaluto_postgres_1"; then
printf "Docker container %s is not running.\n" "lokavaluto_postgres_1" >&2
if ! docker ps | grep -q "$DB_CONTAINER_NAME"; then
printf "Docker container %s is not running.\n" "$DB_CONTAINER_NAME" >&2
return 1
fi