From 1c98babdc1dde51722c5fdb705445de354ddb872 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sat, 23 Oct 2021 13:19:50 +0200 Subject: [PATCH] remove smbclient NT1 --- bazarr/root/etc/cont-init.d/92-smb_mounts_v1.4.sh | 14 ++++++++++++-- cloudcommander/rootfs/run.sh | 4 ++-- .../root/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- emby/root/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- filebrowser/rootfs/run.sh | 4 ++-- .../root/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- lidarr/root/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- .../rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- photoprism/rootfs/run.sh | 4 ++-- plex/root/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- .../root/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- .../rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- radarr/root/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- readarr/root/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- sonarr/root/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- .../rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- .../rootfs/etc/cont-init.d/92-smb_mounts_v1.4.sh | 4 ++-- 17 files changed, 44 insertions(+), 34 deletions(-) diff --git a/bazarr/root/etc/cont-init.d/92-smb_mounts_v1.4.sh b/bazarr/root/etc/cont-init.d/92-smb_mounts_v1.4.sh index ba4eab4b8..a88593dfe 100644 --- a/bazarr/root/etc/cont-init.d/92-smb_mounts_v1.4.sh +++ b/bazarr/root/etc/cont-init.d/92-smb_mounts_v1.4.sh @@ -39,6 +39,11 @@ if bashio::config.has_value 'networkdisks'; then exit 1 fi + # Test if ip is available + if [ ping 127.0.0.1 -c 1 &>/dev/null ]; then + + fi + # Prepare mount point mkdir -p /mnt/$diskname chown -R root:root /mnt/$diskname @@ -70,8 +75,13 @@ if bashio::config.has_value 'networkdisks'; then # Provide debugging info smbclient -V &>/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + + + disk="//192.168.178.23/NAS" + CIFS_USERNAME="homeassistant" + CIFS_PASSWORD="Bonjour01" + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(/dev/null || apt-get install smbclient || apk add --no-cache samba-client - smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true - smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true + smbclient $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true + smbclient -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD || true # Error code bashio::log.fatal "Error read : $(