File tree 10 files changed +10
-10
lines changed 10 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
57
57
file_env REDIS_HOST_PASSWORD
58
58
echo ' session.save_handler = redis'
59
59
# check if redis host is an unix socket path
60
- if [ " ${ REDIS_HOST: 0 : 1} " = " /" ]; then
60
+ if [ " $( echo " $ REDIS_HOST" | cut -c1-1 ) " = " /" ]; then
61
61
if [ -n " ${REDIS_HOST_PASSWORD+x} " ]; then
62
62
echo " session.save_path = \" unix://${REDIS_HOST} ?auth=${REDIS_HOST_PASSWORD} \" "
63
63
else
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
57
57
file_env REDIS_HOST_PASSWORD
58
58
echo ' session.save_handler = redis'
59
59
# check if redis host is an unix socket path
60
- if [ " ${ REDIS_HOST: 0 : 1} " = " /" ]; then
60
+ if [ " $( echo " $ REDIS_HOST" | cut -c1-1 ) " = " /" ]; then
61
61
if [ -n " ${REDIS_HOST_PASSWORD+x} " ]; then
62
62
echo " session.save_path = \" unix://${REDIS_HOST} ?auth=${REDIS_HOST_PASSWORD} \" "
63
63
else
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
57
57
file_env REDIS_HOST_PASSWORD
58
58
echo ' session.save_handler = redis'
59
59
# check if redis host is an unix socket path
60
- if [ " ${ REDIS_HOST: 0 : 1} " = " /" ]; then
60
+ if [ " $( echo " $ REDIS_HOST" | cut -c1-1 ) " = " /" ]; then
61
61
if [ -n " ${REDIS_HOST_PASSWORD+x} " ]; then
62
62
echo " session.save_path = \" unix://${REDIS_HOST} ?auth=${REDIS_HOST_PASSWORD} \" "
63
63
else
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
57
57
file_env REDIS_HOST_PASSWORD
58
58
echo ' session.save_handler = redis'
59
59
# check if redis host is an unix socket path
60
- if [ " ${ REDIS_HOST: 0 : 1} " = " /" ]; then
60
+ if [ " $( echo " $ REDIS_HOST" | cut -c1-1 ) " = " /" ]; then
61
61
if [ -n " ${REDIS_HOST_PASSWORD+x} " ]; then
62
62
echo " session.save_path = \" unix://${REDIS_HOST} ?auth=${REDIS_HOST_PASSWORD} \" "
63
63
else
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
57
57
file_env REDIS_HOST_PASSWORD
58
58
echo ' session.save_handler = redis'
59
59
# check if redis host is an unix socket path
60
- if [ " ${ REDIS_HOST: 0 : 1} " = " /" ]; then
60
+ if [ " $( echo " $ REDIS_HOST" | cut -c1-1 ) " = " /" ]; then
61
61
if [ -n " ${REDIS_HOST_PASSWORD+x} " ]; then
62
62
echo " session.save_path = \" unix://${REDIS_HOST} ?auth=${REDIS_HOST_PASSWORD} \" "
63
63
else
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
57
57
file_env REDIS_HOST_PASSWORD
58
58
echo ' session.save_handler = redis'
59
59
# check if redis host is an unix socket path
60
- if [ " ${ REDIS_HOST: 0 : 1} " = " /" ]; then
60
+ if [ " $( echo " $ REDIS_HOST" | cut -c1-1 ) " = " /" ]; then
61
61
if [ -n " ${REDIS_HOST_PASSWORD+x} " ]; then
62
62
echo " session.save_path = \" unix://${REDIS_HOST} ?auth=${REDIS_HOST_PASSWORD} \" "
63
63
else
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
57
57
file_env REDIS_HOST_PASSWORD
58
58
echo ' session.save_handler = redis'
59
59
# check if redis host is an unix socket path
60
- if [ " ${ REDIS_HOST: 0 : 1} " = " /" ]; then
60
+ if [ " $( echo " $ REDIS_HOST" | cut -c1-1 ) " = " /" ]; then
61
61
if [ -n " ${REDIS_HOST_PASSWORD+x} " ]; then
62
62
echo " session.save_path = \" unix://${REDIS_HOST} ?auth=${REDIS_HOST_PASSWORD} \" "
63
63
else
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
57
57
file_env REDIS_HOST_PASSWORD
58
58
echo ' session.save_handler = redis'
59
59
# check if redis host is an unix socket path
60
- if [ " ${ REDIS_HOST: 0 : 1} " = " /" ]; then
60
+ if [ " $( echo " $ REDIS_HOST" | cut -c1-1 ) " = " /" ]; then
61
61
if [ -n " ${REDIS_HOST_PASSWORD+x} " ]; then
62
62
echo " session.save_path = \" unix://${REDIS_HOST} ?auth=${REDIS_HOST_PASSWORD} \" "
63
63
else
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
57
57
file_env REDIS_HOST_PASSWORD
58
58
echo ' session.save_handler = redis'
59
59
# check if redis host is an unix socket path
60
- if [ " ${ REDIS_HOST: 0 : 1} " = " /" ]; then
60
+ if [ " $( echo " $ REDIS_HOST" | cut -c1-1 ) " = " /" ]; then
61
61
if [ -n " ${REDIS_HOST_PASSWORD+x} " ]; then
62
62
echo " session.save_path = \" unix://${REDIS_HOST} ?auth=${REDIS_HOST_PASSWORD} \" "
63
63
else
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
57
57
file_env REDIS_HOST_PASSWORD
58
58
echo ' session.save_handler = redis'
59
59
# check if redis host is an unix socket path
60
- if [ " ${ REDIS_HOST: 0 : 1} " = " /" ]; then
60
+ if [ " $( echo " $ REDIS_HOST" | cut -c1-1 ) " = " /" ]; then
61
61
if [ -n " ${REDIS_HOST_PASSWORD+x} " ]; then
62
62
echo " session.save_path = \" unix://${REDIS_HOST} ?auth=${REDIS_HOST_PASSWORD} \" "
63
63
else
You can’t perform that action at this time.
0 commit comments