This commit is contained in:
Mateusz Gruszczyński
2025-09-26 22:42:10 +02:00
parent b679700c6d
commit dfa3028dad
6 changed files with 44 additions and 21 deletions

View File

@@ -19,6 +19,19 @@ GIT_BRANCH="${GIT_BRANCH:-$(git -C "$REPO_DIR" rev-parse --abbrev-ref HEAD 2>/de
DB_PROFILE="sqlite" # domyślnie sqlite, czyli brak profilu pgsql/mysql
SERVICES=()
# Tworzenie katalogów danych dla baz jeśli brak
if [[ "$DB_PROFILE" == "pgsql" ]]; then
if [[ ! -d "./db/pgsql" ]]; then
log "Tworzę katalog ./db/pgsql dla danych PostgreSQL"
mkdir -p ./db/pgsql
fi
elif [[ "$DB_PROFILE" == "mysql" ]]; then
if [[ ! -d "./db/mysql" ]]; then
log "Tworzę katalog ./db/mysql dla danych MySQL"
mkdir -p ./db/mysql
fi
fi
# Przetwarzanie argumentów
if [[ $# -gt 0 ]]; then
case "$1" in