diff --git a/docs/development/plugin-creation.md b/docs/development/plugin-creation.md index 001fe34fb..55098a826 100644 --- a/docs/development/plugin-creation.md +++ b/docs/development/plugin-creation.md @@ -15,7 +15,7 @@ The below plugin is a dummy `dokku hello` plugin. If your plugin exposes command ```shell #!/usr/bin/env bash set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x -source "$(dirname $0)/../common/functions" +source "$PLUGIN_PATH/common/functions" case "$1" in hello) diff --git a/docs/development/pluginhooks.md b/docs/development/pluginhooks.md index b725be799..c61df9176 100644 --- a/docs/development/pluginhooks.md +++ b/docs/development/pluginhooks.md @@ -253,7 +253,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x -source "$(dirname $0)/../common/functions" +source "$PLUGIN_PATH/common/functions" dokku_log_info1" Installing GraphicsMagick..." @@ -279,7 +279,7 @@ docker commit $ID $IMAGE > /dev/null set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x -source "$(dirname $0)/../common/functions" +source "$PLUGIN_PATH/common/functions" dokku_log_info1" Installing $CONTAINER_PACKAGE..." @@ -360,7 +360,7 @@ fi set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x -source "$(dirname $0)/../common/functions" +source "$PLUGIN_PATH/common/functions" APP="$1" IMAGE="dokku/$APP"