mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update 00-smb_mounts.sh
This commit is contained in:
@@ -116,7 +116,7 @@ if bashio::config.has_value 'networkdisks'; then
|
||||
|
||||
# Are credentials correct
|
||||
echo "... testing credentials"
|
||||
OUTPUT="$(smbclient -t 2 -L "$disk" -U "$USERNAME"%"$PASSWORD" -c "exit" $DOMAINCLIENT 2>&1)"
|
||||
OUTPUT="$(smbclient -t 2 -L "$disk" -U "$USERNAME"%"$PASSWORD" -c "exit" $DOMAINCLIENT 2>&1 || true)"
|
||||
if echo "$OUTPUT" | grep -q "LOGON_FAILURE"; then
|
||||
bashio::log.fatal "Incorrect Username, Password, or Domain! Script will stop."
|
||||
touch ERRORCODE
|
||||
|
||||
Reference in New Issue
Block a user