feat: allow skipping the install trigger when installing a plugin
During docker image generation, certain folders either do not exist or are symlinked in an odd fashion, causing the install trigger to fail. This is not the case at runtime, so we should defer the install trigger until container start and provide a method of skipping it when generating a docker image. Closes #7308
This commit is contained in:
@@ -33,6 +33,7 @@ download_and_enable_plugin() {
|
||||
declare desc="wrapper to download and enable specified version of plugin"
|
||||
local PLUGIN_GIT_URL="$1"
|
||||
shift
|
||||
local SKIP_INSTALL_TRIGGER=false
|
||||
while getopts ":-:" opt "$@"; do
|
||||
case "$opt" in
|
||||
-)
|
||||
@@ -47,6 +48,9 @@ download_and_enable_plugin() {
|
||||
OPTIND=$((OPTIND + 1))
|
||||
local CUSTOM_NAME="$val"
|
||||
;;
|
||||
skip-install-trigger)
|
||||
SKIP_INSTALL_TRIGGER=true
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
@@ -58,6 +62,9 @@ download_and_enable_plugin() {
|
||||
if [[ -n "$PLUGIN_COMMITTISH" ]]; then
|
||||
update_plugin "$PLUGIN_NAME" "$PLUGIN_COMMITTISH"
|
||||
fi
|
||||
if [[ "$SKIP_INSTALL_TRIGGER" == "false" ]]; then
|
||||
plugn trigger install
|
||||
fi
|
||||
}
|
||||
|
||||
update_plugin() {
|
||||
|
||||
Reference in New Issue
Block a user