Merge pull request #9102 from dokku/missing-nginx-vhosts

fix: allow enabling nginx-vhosts when skipped at install
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2026-09-29 23:59:59 -04:00
commit 33b70abbf1
5 files changed
+61 -5

No files matched your search

+3
View File
@@ -18,6 +18,9 @@ enable_plugin() {
local PLUGIN="$1"
[[ -e $PLUGIN_ENABLED_PATH/$PLUGIN ]] && dokku_log_fail "Plugin already enabled"
[[ ! -e $PLUGIN_AVAILABLE_PATH/$PLUGIN ]] && dokku_log_fail "Plugin does not exist"
if [[ -e $PLUGIN_CORE_AVAILABLE_PATH/$PLUGIN ]] && [[ ! -e $PLUGIN_CORE_ENABLED_PATH/$PLUGIN ]]; then
PLUGIN_PATH="$PLUGIN_CORE_PATH" plugn enable "$PLUGIN"
fi
plugn enable "$PLUGIN"
dokku_log_info1_quiet "Plugin $PLUGIN enabled"
}