mirror of
https://github.com/dokku/dokku.git
synced 2026-09-02 12:10:09 +02:00
This functionality was broken due to a refactor of argument handling in a previous release. In addition to the fix, all the functionality was moved to scheduler-enter, which allows scheduler plugins to implement ways of entering containers in the relevant scheduler. Closes #3972
19 lines
448 B
Bash
Executable File
19 lines
448 B
Bash
Executable File
#!/usr/bin/env bash
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
cmd-enter-default() {
|
|
declare desc="enters running app container of specified proc type"
|
|
declare cmd="enter"
|
|
[[ "$1" == "$cmd" ]] && shift 1
|
|
declare APP="$1"
|
|
|
|
verify_app_name "$APP"
|
|
|
|
local DOKKU_SCHEDULER=$(get_app_scheduler "$APP")
|
|
plugn trigger scheduler-enter "$DOKKU_SCHEDULER" "$@"
|
|
}
|
|
|
|
cmd-enter-default "$@"
|