Move config_create into config/functions
This commit is contained in:
@@ -3,12 +3,6 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_PATH/common/functions"
|
||||
source "$PLUGIN_PATH/config/functions"
|
||||
|
||||
config_create () {
|
||||
[ -f $ENV_FILE ] || {
|
||||
touch $ENV_FILE
|
||||
}
|
||||
}
|
||||
|
||||
config_styled_hash () {
|
||||
vars="$1"
|
||||
prefix="$2"
|
||||
|
||||
@@ -45,3 +45,8 @@ config_parse_args() {
|
||||
fi
|
||||
export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
|
||||
}
|
||||
|
||||
config_create () {
|
||||
local ENV_FILE=$1
|
||||
[ -f $ENV_FILE ] || touch $ENV_FILE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user