Skip to content
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
8 changes: 3 additions & 5 deletions discourse-doctor
Original file line number Diff line number Diff line change
Expand Up @@ -240,23 +240,21 @@ check_email() {
get_yml_file() {
if [ -n "$app_name" ] && [ -f "containers/$app_name.yml" ]
then
log "Using app name '$app_name' from command argument"
web_file="containers/$app_name.yml"
log "Found $web_file"
log "Found $web_file from command argument"
elif [ -f containers/app.yml ]
then
app_name="app"
web_file=containers/$app_name.yml
log "Found $web_file"
elif [ -f containers/web_only.yml ]
then
log "YML=web_only.yml"
app_name="web_only"
web_file=containers/$app_name.yml
log "Found $web_file"
else
log "Can't find app.yml or web_only.yml."
log "Giving up."
log There is no container definition.
log Unable to continue.
exit
fi
}
Expand Down