using absolute path for plugins

This commit is contained in:
Jeff Lindsay committed 2013-06-30 11:02:40 -05:00
1 parent 1ebfc9486a
commit 6be113f7de
3 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -8,7 +8,8 @@ install: gitreceive sshcommand pluginhook
cp dokku /usr/local/bin/dokku cp dokku /usr/local/bin/dokku
cp receiver /home/git/receiver cp receiver /home/git/receiver
cp nginx-app-conf /home/git/nginx-app-conf cp nginx-app-conf /home/git/nginx-app-conf
cp -r plugins /home/git/.plugins mkdir -p /var/lib/dokku/plugins
cp -r plugins/* /var/lib/dokku/plugins
gitreceive: gitreceive:
wget -qO /usr/local/bin/gitreceive ${GITRECEIVE_URL} wget -qO /usr/local/bin/gitreceive ${GITRECEIVE_URL}
+1 -1
View File
@@ -15,7 +15,7 @@ cd dokku && make install
curl "$DOKKU_STACK" | gunzip -cd | docker import - progrium/buildstep curl "$DOKKU_STACK" | gunzip -cd | docker import - progrium/buildstep
PLUGINPATH=/home/git/.plugins PLUGIN_PATH=/var/lib/dokku/plugins
pluginhook install pluginhook install
echo echo
+2 -1
View File
@@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
PLUGIN_PATH="$HOME/.plugins" export PLUGIN_PATH="/var/lib/dokku/plugins"
set -e; case "$1" in set -e; case "$1" in
receive) receive)
APP="$2"; IMAGE="app/$APP" APP="$2"; IMAGE="app/$APP"
@@ -53,6 +53,7 @@ set -e; case "$1" in
;; ;;
*) *)
shift
pluginhook commands "$@" pluginhook commands "$@"
;; ;;