Update functions

This commit is contained in:
Jose Diaz-Gonzalez
2018-04-10 15:54:32 -04:00
committed by GitHub
parent 8cc870a1bb
commit 08cd26d394

View File

@@ -39,7 +39,7 @@ service_create() {
if [[ -z $REDIS_CONFIG_PATH ]] ; then if [[ -z $REDIS_CONFIG_PATH ]] ; then
curl -sSL "https://raw.githubusercontent.com/antirez/redis/${PLUGIN_IMAGE_VERSION:0:3}/redis.conf" > "$SERVICE_ROOT/config/redis.conf" || dokku_log_fail "Unable to download the default redis.conf to the config directory" curl -sSL "https://raw.githubusercontent.com/antirez/redis/${PLUGIN_IMAGE_VERSION:0:3}/redis.conf" > "$SERVICE_ROOT/config/redis.conf" || dokku_log_fail "Unable to download the default redis.conf to the config directory"
else else
cp "$REDIS_CONFIG_PATH" "$SERVICE_ROOT/config/redis.conf" cp "$REDIS_CONFIG_PATH" "$SERVICE_ROOT/config/redis.conf" || dokku_log_fail "Unable to copy the ${REDIS_CONFIG_PATH} to the config directory"
fi fi
PASSWORD=$(openssl rand -hex 32) PASSWORD=$(openssl rand -hex 32)
if [[ -n "$SERVICE_PASSWORD" ]]; then if [[ -n "$SERVICE_PASSWORD" ]]; then