Skip to content
Snippets Groups Projects
Commit f6eab3bd authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix borgmatic init command

parent c6576dc8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment