From c80c422e54955ab5f32d4970e805b8d38a841fd6 Mon Sep 17 00:00:00 2001 From: Siphonight Date: Sat, 15 Feb 2025 22:11:01 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20erreur=20v=C3=A9rification=20sha-2?= =?UTF-8?q?56?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- entrypoint.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 537e67f..8d6104d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM alpine:3.20.0 AS monosphere-builder #Setting default settings, please change them at run -ARG MONOSPHERE_VERSION="3.3.8 Alpha" +ARG MONOSPHERE_VERSION="3.3.9 Alpha" #Defining build settings diff --git a/entrypoint.sh b/entrypoint.sh index 76ebc18..bd446bb 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -67,7 +67,8 @@ for userinfo in ${userfile}; do encrypted_password=$(echo "${userinfo}" | cut -d ';' -f 3) setkeys=$(echo "${userinfo}" | cut -d ';' -f 4) - if [[ $(echo "${encrypted_password}" | cut -c1-3) != "$6$" ]] || [[ $(echo "${encrypted_password}" | cut -c1-1) -ne "0" ]]; then + # shellcheck disable=SC2016 + if [[ $(echo "${encrypted_password}" | cut -c1-3) != '$6$' ]] && [[ $(echo "${encrypted_password}" | cut -c1-1) != '0' ]]; then error_msg "Code 01 : Problème avec le mot de passe entré pour l'utilisateur \"${user}\".\nConsultez la documentation pour plus d'informations." exit 1 fi