mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
hadolint
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
##############
|
||||
# Data usage #
|
||||
@@ -13,12 +14,12 @@ chown -R abc:abc /data
|
||||
|
||||
# correct viewport bug
|
||||
# grep -rl '"lt-md":"(max-width: 959px)"' /app | xargs sed -i 's|"lt-md":"(max-width: 959px)"|"lt-md":"(max-width: 100px)"|g' || true
|
||||
|
||||
|
||||
######################
|
||||
# API URL CORRECTION #
|
||||
######################
|
||||
|
||||
# allow true url for ingress
|
||||
# allow true url for ingress
|
||||
grep -rl '/api/' /app | xargs sed -i 's|/api/|api/|g' || true
|
||||
grep -rl 'api/' /app | xargs sed -i 's|api/|./api/|g' || true
|
||||
|
||||
@@ -35,15 +36,15 @@ FREQUENCY=$(bashio::config 'Updates')
|
||||
bashio::log.info "$FREQUENCY updates"
|
||||
|
||||
case $FREQUENCY in
|
||||
"Hourly")
|
||||
sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root
|
||||
;;
|
||||
"Hourly")
|
||||
sed -i -e '$a 0 * * * * /run.sh' /etc/crontabs/root
|
||||
;;
|
||||
|
||||
"Daily")
|
||||
sed -i -e '$a 0 0 * * * /run.sh' /etc/crontabs/root
|
||||
;;
|
||||
"Daily")
|
||||
sed -i -e '$a 0 0 * * * /run.sh' /etc/crontabs/root
|
||||
;;
|
||||
|
||||
"Weekly")
|
||||
sed -i -e '$a 0 0 * * 0 /run.sh' /etc/crontabs/root
|
||||
;;
|
||||
"Weekly")
|
||||
sed -i -e '$a 0 0 * * 0 /run.sh' /etc/crontabs/root
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
#################
|
||||
# NGINX SETTING #
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
# ==============================================================================
|
||||
|
||||
# Wait for transmission to become available
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
# wait for scrutiny to load
|
||||
bashio::net.wait_for 8080
|
||||
|
||||
|
||||
#####################
|
||||
# ADD LOCAL DEVICES #
|
||||
#####################
|
||||
|
||||
# search for local devices
|
||||
scrutiny-collector-metrics run >/dev/null && bashio::log.info "Local Devices Added" || bashio::log.error "Local Devices Not Added"
|
||||
scrutiny-collector-metrics run >/dev/null && bashio::log.info "Local Devices Added" || bashio::log.error "Local Devices Not Added"
|
||||
|
||||
Reference in New Issue
Block a user