dev: add convenience copy-file bin and fix data path used by plugin

This commit is contained in:
Jose Diaz-Gonzalez
2021-09-12 03:28:55 -04:00
parent b576967efa
commit fe950d727e
3 changed files with 10 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ main() {
# built in the Dockerfile
PLUGIN_NAME="$(source /tmp/.env && echo "$PLUGIN_NAME")"
PLUGIN_VARIABLE="$(source /tmp/.env && echo "$PLUGIN_VARIABLE")"
dokku config:set --global "${PLUGIN_VARIABLE}_HOST_ROOT=${SERVICE_HOST_ROOT}"
echo "export ${PLUGIN_VARIABLE}_HOST_ROOT=${SERVICE_HOST_ROOT}/$PLUGIN_NAME" > /etc/default/dokku
}
main "$@"