Remove invalid service directory during command runs
Refs dokku/dokku-mariadb#30
This commit is contained in:
4
commands
4
commands
@@ -15,6 +15,10 @@ if [[ $1 == $PLUGIN_COMMAND_PREFIX:* ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -d "$PLUGIN_DATA_ROOT/*" ]]; then
|
||||||
|
rm -rf "$PLUGIN_DATA_ROOT/*"
|
||||||
|
fi
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
$PLUGIN_COMMAND_PREFIX:create)
|
$PLUGIN_COMMAND_PREFIX:create)
|
||||||
[[ -z $2 ]] && dokku_log_fail "Please specify a name for the service"
|
[[ -z $2 ]] && dokku_log_fail "Please specify a name for the service"
|
||||||
|
|||||||
Reference in New Issue
Block a user