Update run

This commit is contained in:
Alexandre
2021-10-15 20:06:44 +02:00
committed by GitHub
parent f1c00911c2
commit 869e2d56c5

View File

@@ -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