mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 15:45:56 +02:00
Update 00-smb_mounts.sh
This commit is contained in:
@@ -109,7 +109,7 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Are credentials correct
|
# Are credentials correct
|
||||||
echo "... testing credentials"
|
echo "... testing credentials"
|
||||||
if ! smbclient -t 2 -L "$disk" -U "$USERNAME%$PASSWORD" "$DOMAINCLIENT" &>/output; then
|
if ! smbclient -t 2 -L "$disk" -U "$USERNAME"%"$PASSWORD" "$DOMAINCLIENT" 2>/output >/dev/null; then
|
||||||
if [[ "$(cat /output)" == *"LOGON_FAILURE"* ]]; then
|
if [[ "$(cat /output)" == *"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."
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user