Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/docker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoncho N. Gunchev <dgunchev@gmail.com>2022-02-08 21:43:35 +0300
committerGitHub <noreply@github.com>2022-02-08 21:43:35 +0300
commit05365221755163f7f513bac939d4851e79b06a04 (patch)
treeeaee26ea861d5fd309f22ddabdb8fb7c7aba88f5 /docker-entrypoint.sh
parentdcf058fb559e7918cd77f5f1bb0dfdbcee813571 (diff)
Simplify first character check in entrypoint.sh (#1679)
Signed-off-by: Doncho N. Gunchev <dgunchev@gmail.com>
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-xdocker-entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index b6da893..206e287 100755
--- a/docker-entrypoint.sh
+++ b/docker-entrypoint.sh
@@ -57,7 +57,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
file_env REDIS_HOST_PASSWORD
echo 'session.save_handler = redis'
# check if redis host is an unix socket path
- if [ "$(echo "$REDIS_HOST" | cut -c1-1)" = "/" ]; then
+ if [ "${REDIS_HOST:0:1}" = "/" ]; then
if [ -n "${REDIS_HOST_PASSWORD+x}" ]; then
echo "session.save_path = \"unix://${REDIS_HOST}?auth=${REDIS_HOST_PASSWORD}\""
else