Move config_create into config/functions
This commit is contained in:
1 parent
c32bf8f035
commit
59a80f7857
2 files changed
+5
-6
No files matched your search
@@ -3,12 +3,6 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|||||||
source "$PLUGIN_PATH/common/functions"
|
source "$PLUGIN_PATH/common/functions"
|
||||||
source "$PLUGIN_PATH/config/functions"
|
source "$PLUGIN_PATH/config/functions"
|
||||||
|
|
||||||
config_create () {
|
|
||||||
[ -f $ENV_FILE ] || {
|
|
||||||
touch $ENV_FILE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
config_styled_hash () {
|
config_styled_hash () {
|
||||||
vars="$1"
|
vars="$1"
|
||||||
prefix="$2"
|
prefix="$2"
|
||||||
|
|||||||
@@ -45,3 +45,8 @@ config_parse_args() {
|
|||||||
fi
|
fi
|
||||||
export APP ENV_FILE DOKKU_CONFIG_TYPE DOKKU_CONFIG_RESTART
|
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