Fix commands, the easy way.

Don't use pluginhook to run the commands hook, just run all the scripts
in a loop.
This commit is contained in:
Paul Lietar
2013-11-22 15:22:23 +00:00
parent 3f487b2291
commit 455be29249
6 changed files with 9 additions and 6 deletions

4
dokku
View File

@@ -100,7 +100,9 @@ EOF
;;
*)
pluginhook commands "$@"
for script in $(ls -d /var/lib/dokku/plugins/*/commands); do
$script "$@"
done
;;
esac

View File

@@ -84,4 +84,4 @@ EOF
;;
esac
cat

View File

@@ -75,4 +75,4 @@ EOF
;;
esac
cat

View File

@@ -173,4 +173,4 @@ EOF
;;
esac
cat

View File

@@ -35,6 +35,8 @@ EOF
git-shell -c "$args"
;;
help)
cat
;;
esac
cat

View File

@@ -1,3 +1,2 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
cat