mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-12 02:21:28 +02:00
--no-cache for apk
This commit is contained in:
@@ -51,7 +51,7 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
# Test smbclient if not mounted yet
|
# Test smbclient if not mounted yet
|
||||||
if [ $MOUNTED = false ]; then
|
if [ $MOUNTED = false ]; then
|
||||||
bashio::log.fatal "Error, could not mount disk. Here is some debugging info :"
|
bashio::log.fatal "Error, could not mount disk. Here is some debugging info :"
|
||||||
smbclient -V &>/dev/null || apt-get install smbclient || apk add samba-client
|
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 $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 -L $disk -U $CIFS_USERNAME%$CIFS_PASSWORD --option="client min protocol"="NT1" || true
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user