From a673dd140993c23d1f7e5e8da0e73ec742615868 Mon Sep 17 00:00:00 2001 From: thespad Date: Sun, 23 Jun 2024 12:53:32 +0100 Subject: [PATCH] Fix ordering --- docker-mods.v3 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docker-mods.v3 b/docker-mods.v3 index 55cbb71..2f86ebe 100755 --- a/docker-mods.v3 +++ b/docker-mods.v3 @@ -480,6 +480,14 @@ if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then curl_check run_mods fi +elif [[ -n ${LSIO_READ_ONLY_FS} ]] && [[ -n ${LSIO_NON_ROOT_USER} ]]; then +echo "╔═════════════════════════════════════════════════════════════════════════╗ +║ ║ +║ You are running this container read-only and as a non-root user: ║ +║ This combination of settings is not supported ║ +║ and may result in unwanted behaviour. ║ +║ ║ +╚═════════════════════════════════════════════════════════════════════════╝" elif [[ -n ${LSIO_READ_ONLY_FS} ]]; then echo "╔═════════════════════════════════════════════════════════════════════════╗ ║ ║ @@ -495,12 +503,4 @@ echo "╔═══════════════════════ ║ and the PUID/PGID environment variables will have no effect. ║ ║ ║ ╚═════════════════════════════════════════════════════════════════════════╝" -else -echo "╔═════════════════════════════════════════════════════════════════════════╗ -║ ║ -║ You are running this container read-only and as a non-root user: ║ -║ This combination of settings is not supported ║ -║ and may result in unwanted behaviour. ║ -║ ║ -╚═════════════════════════════════════════════════════════════════════════╝" fi