From f6eab3bd0edd62e5fefc44393e7c553edc5eb05b Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Wed, 21 Aug 2024 15:43:27 +0200 Subject: [PATCH] Fix borgmatic init command --- test-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-and-deploy.yml b/test-and-deploy.yml index 1b95051..7a4d906 100644 --- a/test-and-deploy.yml +++ b/test-and-deploy.yml @@ -648,7 +648,7 @@ Debug: - docker compose exec -u root borgmatic chmod -R go-w-r-x /root/.ssh || true - docker compose cp /wait php:/wait - if [[ "$WAIT_HOSTS" != "none" ]]; then docker compose exec -e WAIT_HOSTS="${WAIT_HOSTS}" -it php /wait; fi - - if [[ ! -d /data/${CI_COMMIT_REF_NAME}/backup/config/security ]]; then docker compose exec -u root borgmatic borgmatic --init --encryption repokey || true; fi + - if [[ ! -d /data/${CI_COMMIT_REF_NAME}/backup/config/security ]]; then docker compose exec -u root borgmatic borgmatic init --encryption repokey || true; fi - if [[ -f ./crontabs/jobs.ini ]]; then docker compose exec -u root php chown -R www-data:www-data /var/backups/mysql || true; fi - if [[ "$INITIAL" == "no" ]]; then drush -y cache-rebuild; fi - if [[ "$INITIAL" == "no" ]] && [[ "${SKIPCONFIGIMPORT}" == "no" ]]; then drush -y config-import; fi -- GitLab