feat: redirect output in every case as appropriate

This commit is contained in:
Jose Diaz-Gonzalez
2024-03-14 10:34:08 -04:00
parent 7d00e2c422
commit aa72794711
4 changed files with 30 additions and 1 deletions

3
dokku
View File

@@ -188,7 +188,8 @@ execute_dokku_cmd() {
set -- "$PLUGIN_CMD" "$@"
fi
if [[ $PLUGIN_NAME =~ git-* ]] || [[ $PLUGIN_NAME =~ git:* ]]; then
if [[ $PLUGIN_NAME =~ git-* ]] || [[ "$PLUGIN_NAME" == "ps:rebuild" ]] || [[ "$PLUGIN_NAME" == "ps:restart" ]] || [[ "$PLUGIN_NAME" == "deploy" ]]; then
export DOKKU_REDIRECT_OUTPUT=true
exec &> >(tee >(tee | logger -i -t "dokku-${DOKKU_PID}"))
fi