Some systems - such as a mounted read-only CIFS filesystem - do not fully support chown, and chowning should be considered optional for cases when the host os has already taken care of permissioning. This commit allows users to disable chown by setting a property on the scheduler-docker-local plugin.
16 lines
536 B
Bash
Executable File
16 lines
536 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
|
|
|
|
scheduler-docker-local-install() {
|
|
declare desc="scheduler-docker-local install plugin trigger"
|
|
declare trigger="scheduler-docker-local-install"
|
|
|
|
mkdir -p "${DOKKU_LIB_ROOT}/data/scheduler-docker-local"
|
|
chown -R "${DOKKU_SYSTEM_USER}:${DOKKU_SYSTEM_GROUP}" "${DOKKU_LIB_ROOT}/data/scheduler-docker-local"
|
|
|
|
fn-plugin-property-setup "scheduler-docker-local"
|
|
}
|
|
|
|
scheduler-docker-local-install "$@"
|