mirror of
https://github.com/dokku/dokku.git
synced 2025-12-25 16:29:30 +01:00
29 lines
848 B
Bash
Executable File
29 lines
848 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
source "$PLUGIN_AVAILABLE_PATH/plugin/functions"
|
|
source "$PLUGIN_AVAILABLE_PATH/plugin/internal-functions"
|
|
|
|
plugin_install_cmd() {
|
|
declare desc="installs a plugin from URL and calls install plugin trigger via command line"
|
|
local cmd="plugin:install"
|
|
case "$2" in
|
|
--core)
|
|
[[ "$#" -gt 2 ]] && dokku_log_info1_quiet "Cannot install additional core plugins, running core plugin install trigger"
|
|
PLUGIN_PATH="$PLUGIN_CORE_PATH" plugn trigger install
|
|
;;
|
|
https:* | git* | ssh:* | file:* | *.tar.gz | *.tgz)
|
|
shift
|
|
download_and_enable_plugin "$@"
|
|
plugn trigger install
|
|
;;
|
|
*)
|
|
plugn trigger install
|
|
;;
|
|
esac
|
|
plugin_prime_bash_completion
|
|
}
|
|
|
|
plugin_install_cmd "$@"
|