mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-23 07:46:05 +02:00
Update run
This commit is contained in:
@@ -63,9 +63,15 @@ if bashio::fs.file_exists "/data/hidden"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Define option
|
# Define option
|
||||||
echo -n $PASSWORD > /data/portainer_password
|
if [ ${#detect} -ge 2 ] then;
|
||||||
options+=(--admin-password-file /data/portainer_password)
|
# More than 2 letters, set password
|
||||||
bashio::log.info "... password set to $PASSWORD"
|
echo -n $PASSWORD > /data/portainer_password
|
||||||
|
options+=(--admin-password-file /data/portainer_password)
|
||||||
|
bashio::log.info "... password set to $PASSWORD"
|
||||||
|
else
|
||||||
|
touch /data/hidden
|
||||||
|
bashio::log.info "... starting without predefined password"
|
||||||
|
fi
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# HIDE CONTAINERS #
|
# HIDE CONTAINERS #
|
||||||
@@ -83,7 +89,7 @@ if ! bashio::fs.file_exists "/data/hidden"; then
|
|||||||
options+=(--hide-label io.hass.type=dns)
|
options+=(--hide-label io.hass.type=dns)
|
||||||
options+=(--hide-label io.hass.type=multicast)
|
options+=(--hide-label io.hass.type=multicast)
|
||||||
options+=(--hide-label io.hass.type=observer)
|
options+=(--hide-label io.hass.type=observer)
|
||||||
bashio::log.info "... non-addon containers hidden"
|
bashio::log.info "... non-addon containers hidden"
|
||||||
touch /data/hidden
|
touch /data/hidden
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user