Browse Source

fix: [vps] make ``recover-target`` work with ``-n`` for dry-run

There was an error as compose itself was launched in dry-run mode even
when trying to get the project name.
master
Valentin Lab 3 days ago
parent
commit
02e65b132d
  1. 2
      bin/vps

2
bin/vps

@ -943,7 +943,7 @@ export -f rocketchat:drop-indexes
compose:project_name() {
if [ -z "$PROJECT_NAME" ]; then
PROJECT_NAME=$(compose --get-project-name) || {
PROJECT_NAME=$(DRY_RUN= compose --get-project-name) || {
err "Couldn't get project name."
return 1
}

Loading…
Cancel
Save