Move to post-extract approach

This commit is contained in:
Luke Murphy
2020-03-19 23:29:59 +01:00
parent ce40247d0a
commit 791fb893ee
5 changed files with 32 additions and 16 deletions

14
post-extract Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
APP="$1"; verify_app_name "$APP"
TMP_WORK_DIR="$2"
pushd "$TMP_WORK_DIR" >/dev/null
cp -r "$TMP_WORK_DIR/ansible/*" "$DOKKU_LIB_ROOT/data/ansible/$APP"
popd >/dev/null