Correction erreur vérification sha-256

This commit is contained in:
Siphonight 2025-02-15 22:11:01 +01:00
parent 042932c2f9
commit 7ef4a0cdeb
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ FROM alpine:3.20.0 AS monosphere-builder
#Setting default settings, please change them at run #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 #Defining build settings

View File

@ -67,7 +67,8 @@ for userinfo in ${userfile}; do
encrypted_password=$(echo "${userinfo}" | cut -d ';' -f 3) encrypted_password=$(echo "${userinfo}" | cut -d ';' -f 3)
setkeys=$(echo "${userinfo}" | cut -d ';' -f 4) 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." 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 exit 1
fi fi