mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 05:14:04 +02:00
Github bot : script beautyshied
This commit is contained in:
@@ -22,7 +22,7 @@ if bashio::config.has_value 'DNS_server'; then
|
|||||||
DNS="${DNS}nameserver $server\n"
|
DNS="${DNS}nameserver $server\n"
|
||||||
DNSLIST="$server $DNSLIST"
|
DNSLIST="$server $DNSLIST"
|
||||||
else
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ if bashio::config.has_value 'DNS_server'; then
|
|||||||
else
|
else
|
||||||
bashio::log.warning "No valid DNS were found. Using default router (or HA) dns servers."
|
bashio::log.warning "No valid DNS were found. Using default router (or HA) dns servers."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
bashio::log.info "DNS Servers option empty. Using default router (or HA) dns servers."
|
bashio::log.info "DNS Servers option empty. Using default router (or HA) dns servers."
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -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 "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 :"
|
bashio::log.fatal "Here is some debugging info :"
|
||||||
|
|
||||||
# Download smbclient
|
# Download smbclient
|
||||||
if command -v "apk" &>/dev/null; then apk add --no-cache samba-client &>/dev/null; fi
|
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 "apt" &>/dev/null; then apt-get install smbclient &>/dev/null; fi
|
||||||
if command -v "pacman" &>/dev/null; then pacman -S smbclient; fi
|
if command -v "pacman" &>/dev/null; then pacman -S smbclient; fi
|
||||||
|
|
||||||
# Provide debugging info
|
# Provide debugging info
|
||||||
smbclient -L $disk -U "$CIFS_USERNAME%$CIFS_PASSWORD" || true
|
smbclient -L $disk -U "$CIFS_USERNAME%$CIFS_PASSWORD" || true
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ CONFIGSOURCE="/config/addons_config/zoneminder"
|
|||||||
|
|
||||||
# Set image location
|
# Set image location
|
||||||
if bashio::config.has_value "Images_location"; then
|
if bashio::config.has_value "Images_location"; then
|
||||||
IMAGESOURCE=$(bashio::config "Images_location")
|
IMAGESOURCE=$(bashio::config "Images_location")
|
||||||
else
|
else
|
||||||
IMAGESOURCE="$CONFIGSOURCE"/images
|
IMAGESOURCE="$CONFIGSOURCE"/images
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create directory
|
# Create directory
|
||||||
|
|||||||
Reference in New Issue
Block a user