This commit is contained in:
Alexandre
2022-02-18 13:28:08 +01:00
parent 97f8ca78ab
commit 258cb25ae4
20 changed files with 24 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
# Autodefine if not defined # Autodefine if not defined
if [ -n "$INTERFACE_NAME" ]; then if [ -n "$INTERFACE_NAME" ]; then

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
################# #################
# NGINX SETTING # # NGINX SETTING #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
################## ##################
# INITIALIZATION # # INITIALIZATION #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
################## ##################
# INITIALIZATION # # INITIALIZATION #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
################### ###################
# SSL CONFIG v1.0 # # SSL CONFIG v1.0 #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
# hadolint ignore=SC2155 # hadolint ignore=SC2155
######## ########

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
( (
bashio::log.info "Running update according to defined schedule" bashio::log.info "Running update according to defined schedule"

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION") CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
CONFIGSOURCE=$(dirname "$CONFIGSOURCE") CONFIGSOURCE=$(dirname "$CONFIGSOURCE")

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION") CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
CONFIGSOURCE="$(dirname "$CONFIGSOURCE")" CONFIGSOURCE="$(dirname "$CONFIGSOURCE")"

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
PATHTOFILES="$(bashio::config "CONFIG_LOCATION")" PATHTOFILES="$(bashio::config "CONFIG_LOCATION")"
PATHTOFILES="$(dirname "${PATHTOFILES}")" PATHTOFILES="$(dirname "${PATHTOFILES}")"

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/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." bashio::log.warning "Warning - minimum configuration recommended : 2 cpu cores and 4 GB of memory. Otherwise the system will become unresponsive and crash."

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
############## ##############
# Launch App # # Launch App #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
################# #################
# Create config # # Create config #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
################ ################
# JOAL SETTING # # JOAL SETTING #

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env bashio #!/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." 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"' 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 npm --prefix packages/server start

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
########## ##########
# BANNER # # BANNER #
@@ -55,5 +56,5 @@ if bashio::config.true 'ssl'; then
bashio::log.info "Configuring ssl" bashio::log.info "Configuring ssl"
CERTFILE=$(bashio::config 'certfile') CERTFILE=$(bashio::config 'certfile')
KEYFILE=$(bashio::config 'keyfile') 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 fi

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
################### ###################
# Define database # # Define database #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
########### ###########
# SCRIPTS # # SCRIPTS #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
bashio::log.info "Starting Portainer..." bashio::log.info "Starting Portainer..."
@@ -24,7 +25,7 @@ if bashio::config.true 'ssl'; then
options+=(--sslcert /ssl/$CERTFILE) options+=(--sslcert /ssl/$CERTFILE)
options+=(--sslkey /ssl/$KEYFILE) options+=(--sslkey /ssl/$KEYFILE)
bashio::log.info "... ssl activated" bashio::log.info "... ssl activated"
fi fi
################ ################
# SET PASSWORD # # SET PASSWORD #

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
# shellcheck shell=bash
#################### ####################
# GLOBAL VARIABLES # # GLOBAL VARIABLES #