First check the ROOT to assign the env

This commit is contained in:
Mikhail f. Shiryaev 2024-11-08 11:45:12 +01:00
parent cf1da69f93
commit 11f3568f5b
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ set -eo pipefail
shopt -s nullglob
DO_CHOWN=1
if [[ "${CLICKHOUSE_DO_NOT_CHOWN:-0}" = "1" || "${CLICKHOUSE_RUN_AS_ROOT:=0}" = "1" ]]; then
if [[ "${CLICKHOUSE_RUN_AS_ROOT:=0}" = "1" || "${CLICKHOUSE_DO_NOT_CHOWN:-0}" = "1" ]]; then
DO_CHOWN=0
fi

View File

@ -4,7 +4,7 @@ set -eo pipefail
shopt -s nullglob
DO_CHOWN=1
if [[ "${CLICKHOUSE_DO_NOT_CHOWN:-0}" = "1" || "${CLICKHOUSE_RUN_AS_ROOT:=0}" = "1" ]]; then
if [[ "${CLICKHOUSE_RUN_AS_ROOT:=0}" = "1" || "${CLICKHOUSE_DO_NOT_CHOWN:-0}" = "1" ]]; then
DO_CHOWN=0
fi