From b70d9a00ffda07de34663e74161424a99ada34de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20D=C3=BCster?= Date: Thu, 25 Jan 2024 12:01:08 +0100 Subject: [PATCH] just: Set file permission for .pycroft.pgpass, suggest depth 1 clone --- justfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 3c9911c4c..8f788ca8c 100644 --- a/justfile +++ b/justfile @@ -2,7 +2,7 @@ # To install `just`, see # https://github.com/casey/just#packages -# execute `just --evaluate ` to check the values of the variables set below +# execute `just --evaluate ` 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