Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

just: Set file permission for .pycroft.pgpass, suggest depth 1 clone #688

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -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"
@@ -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' \
@@ -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 git@git.agdsn.de:AGDSN/pycroft-data.git data"
echo "git clone --depth 1 git@git.agdsn.de:AGDSN/pycroft-data.git data"
exit 1
fi

Loading