mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 17:31:03 +01:00
lint
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
# Autodefine if not defined
|
||||
if [ -n "$INTERFACE_NAME" ]; then
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
#################
|
||||
# NGINX SETTING #
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
##################
|
||||
# INITIALIZATION #
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
##################
|
||||
# INITIALIZATION #
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
###################
|
||||
# SSL CONFIG v1.0 #
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
# hadolint ignore=SC2155
|
||||
|
||||
########
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
(
|
||||
bashio::log.info "Running update according to defined schedule"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
|
||||
CONFIGSOURCE=$(dirname "$CONFIGSOURCE")
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
|
||||
CONFIGSOURCE="$(dirname "$CONFIGSOURCE")"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
PATHTOFILES="$(bashio::config "CONFIG_LOCATION")"
|
||||
PATHTOFILES="$(dirname "${PATHTOFILES}")"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
bashio::log.warning "Warning - minimum configuration recommended : 2 cpu cores and 4 GB of memory. Otherwise the system will become unresponsive and crash."
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
##############
|
||||
# Launch App #
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
#################
|
||||
# Create config #
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
################
|
||||
# JOAL SETTING #
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
# shellcheck disable=SC2155
|
||||
|
||||
bashio::log.warning "Warning - minimum configuration recommended : 2 cpu cores and 4 GB of memory. Otherwise the system will become unresponsive and crash."
|
||||
|
||||
@@ -61,5 +63,5 @@ export APP_BASE_URL=$(bashio::config 'APP_BASE_URL')
|
||||
|
||||
bashio::log.info 'Starting Joplin. Initial user is "admin@localhost" with password "admin"'
|
||||
|
||||
cd /home/joplin
|
||||
cd /home/joplin || true
|
||||
npm --prefix packages/server start
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
##########
|
||||
# BANNER #
|
||||
@@ -55,5 +56,5 @@ if bashio::config.true 'ssl'; then
|
||||
bashio::log.info "Configuring ssl"
|
||||
CERTFILE=$(bashio::config 'certfile')
|
||||
KEYFILE=$(bashio::config 'keyfile')
|
||||
sed -i "7 i tls /ssl/$CERTFILE /ssl/$KEYFILE" /app/Caddyfile
|
||||
sed -i "7 i tls /ssl/$CERTFILE /ssl/$KEYFILE" /app/Caddyfile
|
||||
fi
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
###################
|
||||
# Define database #
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
###########
|
||||
# SCRIPTS #
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
bashio::log.info "Starting Portainer..."
|
||||
|
||||
@@ -24,7 +25,7 @@ if bashio::config.true 'ssl'; then
|
||||
options+=(--sslcert /ssl/$CERTFILE)
|
||||
options+=(--sslkey /ssl/$KEYFILE)
|
||||
bashio::log.info "... ssl activated"
|
||||
fi
|
||||
fi
|
||||
|
||||
################
|
||||
# SET PASSWORD #
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
####################
|
||||
# GLOBAL VARIABLES #
|
||||
|
||||
Reference in New Issue
Block a user