using absolute path for plugins
This commit is contained in:
3
Makefile
3
Makefile
@@ -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}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
3
dokku
3
dokku
@@ -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 "$@"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user