Merge pull request #318 from alexbelgium/create-pull-request/patch-1651968741

Github bot : script beautyshied
This commit is contained in:
Alexandre
2022-05-08 04:19:44 +02:00
committed by GitHub
3 changed files with 8 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ if bashio::config.has_value 'DNS_server'; then
DNS="${DNS}nameserver $server\n"
DNSLIST="$server $DNSLIST"
else
bashio::log.warning "DNS $server was requested but can't be pinged. It won't be used"
bashio::log.warning "DNS $server was requested but can't be pinged. It won't be used"
fi
done
@@ -37,7 +37,7 @@ if bashio::config.has_value 'DNS_server'; then
else
bashio::log.warning "No valid DNS were found. Using default router (or HA) dns servers."
fi
else
bashio::log.info "DNS Servers option empty. Using default router (or HA) dns servers."
fi

View File

@@ -71,10 +71,10 @@ if bashio::config.has_value 'networkdisks'; then
bashio::log.fatal "Error, unable to mount $disk to /mnt/$diskname with username $CIFS_USERNAME, $CIFS_PASSWORD. Please check your remote share path, username, password, domain, try putting 0 in UID and GID"
bashio::log.fatal "Here is some debugging info :"
# Download smbclient
if command -v "apk" &>/dev/null; then apk add --no-cache samba-client &>/dev/null; fi
if command -v "apt" &>/dev/null; then apt-get install smbclient &>/dev/null; fi
if command -v "pacman" &>/dev/null; then pacman -S smbclient; fi
# Download smbclient
if command -v "apk" &>/dev/null; then apk add --no-cache samba-client &>/dev/null; fi
if command -v "apt" &>/dev/null; then apt-get install smbclient &>/dev/null; fi
if command -v "pacman" &>/dev/null; then pacman -S smbclient; fi
# Provide debugging info
smbclient -L $disk -U "$CIFS_USERNAME%$CIFS_PASSWORD" || true

View File

@@ -7,9 +7,9 @@ CONFIGSOURCE="/config/addons_config/zoneminder"
# Set image location
if bashio::config.has_value "Images_location"; then
IMAGESOURCE=$(bashio::config "Images_location")
IMAGESOURCE=$(bashio::config "Images_location")
else
IMAGESOURCE="$CONFIGSOURCE"/images
IMAGESOURCE="$CONFIGSOURCE"/images
fi
# Create directory