From 47d945ae9cc540c1edf4dc8f40a5cca78372081a Mon Sep 17 00:00:00 2001 From: thespad Date: Sun, 23 Jun 2024 12:51:04 +0100 Subject: [PATCH] Split informational messages --- docker-mods.v3 | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/docker-mods.v3 b/docker-mods.v3 index 61657b8..55cbb71 100755 --- a/docker-mods.v3 +++ b/docker-mods.v3 @@ -480,12 +480,27 @@ if [[ -z ${LSIO_READ_ONLY_FS} ]] && [[ -z ${LSIO_NON_ROOT_USER} ]]; then curl_check run_mods fi - -else +elif [[ -n ${LSIO_READ_ONLY_FS} ]]; then echo "╔═════════════════════════════════════════════════════════════════════════╗ ║ ║ -║ You are running this container read-only or as a non-root user: ║ +║ You are running this container read-only: ║ ║ UMASK, custom services, & docker mod functionality will be disabled ║ ║ ║ ╚═════════════════════════════════════════════════════════════════════════╝" +elif [[ -n ${LSIO_NON_ROOT_USER} ]]; then +echo "╔═════════════════════════════════════════════════════════════════════════╗ +║ ║ +║ You are running this container as a non-root user: ║ +║ UMASK, custom services, & docker mod functionality will be disabled ║ +║ 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