mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02: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
|
# Are credentials correct
|
||||||
echo "... testing credentials"
|
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
|
if echo "$OUTPUT" | grep -q "LOGON_FAILURE"; then
|
||||||
bashio::log.fatal "Incorrect Username, Password, or Domain! Script will stop."
|
bashio::log.fatal "Incorrect Username, Password, or Domain! Script will stop."
|
||||||
touch ERRORCODE
|
touch ERRORCODE
|
||||||
|
|||||||
Reference in New Issue
Block a user