mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-01 11:46:07 +02:00
Github bot : script beautyshied
This commit is contained in:
@@ -5,10 +5,10 @@ slug="${HOSTNAME#*-}"
|
||||
bashio::log.info "Execute /config/${slug}.sh if existing"
|
||||
|
||||
if [ -f /config/"${slug}".sh ]; then
|
||||
bashio::log.info "... script found, executing"
|
||||
chmod +x /config/"${slug}".sh
|
||||
/./config/"${slug}".sh
|
||||
bashio::log.info "... script found, executing"
|
||||
chmod +x /config/"${slug}".sh
|
||||
/./config/"${slug}".sh
|
||||
else
|
||||
bashio::log.info "... no script found"
|
||||
bashio::log.info "... no script found"
|
||||
fi
|
||||
|
||||
|
||||
@@ -45,8 +45,8 @@ if bashio::config.has_value 'localdisks'; then
|
||||
# Mount
|
||||
# shellcheck disable=SC2015
|
||||
mount "$devpath"/"$disk" -o "uid=$PUID,gid=$PGID" /mnt/"$disk" && bashio::log.info "Success! $disk mounted to /mnt/$disk" || \
|
||||
(mount "$devpath"/"$disk" /mnt/"$disk" && bashio::log.info "Success! $disk mounted to /mnt/$disk") || \
|
||||
(bashio::log.fatal "Unable to mount local drives! Please check the name." && rmdir /mnt/$disk)
|
||||
(mount "$devpath"/"$disk" /mnt/"$disk" && bashio::log.info "Success! $disk mounted to /mnt/$disk") || \
|
||||
(bashio::log.fatal "Unable to mount local drives! Please check the name." && rmdir /mnt/$disk)
|
||||
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user