Skip to content

Commit

Permalink
just: Set file permission for .pycroft.pgpass, suggest depth 1 clone
Browse files Browse the repository at this point in the history
  • Loading branch information
FestplattenSchnitzel authored and lukasjuhrich committed Jan 25, 2024
1 parent 766e4bd commit b70d9a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# To install `just`, see
# https://github.com/casey/just#packages

# execute `just --evaluate <var>` to check the values of the variables set below
# execute `just --evaluate <var>` to check the values of the variables set below
drc := if `docker compose 2>&1 >/dev/null; echo $?` == "0" { "docker compose" } else { "docker-compose" }
export COMPOSE_FILE := "docker-compose.dev.yml:docker-compose.test.yml"
export PGPASSFILE := ".pycroft.pgpass"
Expand Down Expand Up @@ -66,6 +66,7 @@ _confirm-drop:
fi
_schema-import: _ensure_schema_dir _stop_all (_up "dev-db")
chmod 0600 .pycroft.pgpass
psql postgres://postgres@127.0.0.1:55432/pycroft \
--quiet --no-password -o /dev/null \
-c 'set client_min_messages to WARNING' \
Expand All @@ -83,7 +84,7 @@ _ensure_schema_dir:
#!/usr/bin/env bash
if [[ ! -d {{ schemadir }} ]]; then
echo "{{ schemadir }} does not exist! Please clone it from gitlab:"
echo "git clone [email protected]:AGDSN/pycroft-data.git data"
echo "git clone --depth 1 [email protected]:AGDSN/pycroft-data.git data"
exit 1
fi
Expand Down

0 comments on commit b70d9a0

Please sign in to comment.