mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-10 16:01:00 +02:00
lint
This commit is contained in:
@@ -49,8 +49,10 @@ if [ -d /var/run/s6/container_environment ]; then
|
|||||||
printf "%s" "$LOCATION" > /var/run/s6/container_environment/FM_HOME
|
printf "%s" "$LOCATION" > /var/run/s6/container_environment/FM_HOME
|
||||||
fi
|
fi
|
||||||
if [ -f ~/.bashrc ]; then
|
if [ -f ~/.bashrc ]; then
|
||||||
printf "%s" "HOME=\"$LOCATION\"" >> ~/.bashrc
|
{
|
||||||
printf "%s" "FM_HOME=\"$LOCATION\"" >> ~/.bashrc
|
printf "%s" "HOME=\"$LOCATION\""
|
||||||
|
printf "%s" "FM_HOME=\"$LOCATION\""
|
||||||
|
} >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
usermod --home "$LOCATION" abc
|
usermod --home "$LOCATION" abc
|
||||||
|
|||||||
@@ -83,10 +83,12 @@ if [ -d /var/run/s6/container_environment ]; then
|
|||||||
printf "%s" "$JWT_SECRET" > /var/run/s6/container_environment/JWT_SECRET
|
printf "%s" "$JWT_SECRET" > /var/run/s6/container_environment/JWT_SECRET
|
||||||
fi
|
fi
|
||||||
if [ -f ~/.bashrc ]; then
|
if [ -f ~/.bashrc ]; then
|
||||||
printf "%s" "DB_USERNAME=\"$DB_USERNAME\"" >> ~/.bashrc
|
{
|
||||||
printf "%s" "DB_PASSWORD=\"$DB_PASSWORD\"" >> ~/.bashrc
|
printf "%s" "DB_USERNAME=\"$DB_USERNAME\""
|
||||||
printf "%s" "DB_DATABASE_NAME=\"$DB_DATABASE_NAME\"" >> ~/.bashrc
|
printf "%s" "DB_PASSWORD=\"$DB_PASSWORD\""
|
||||||
printf "%s" "DB_PORT=\"$DB_PORT\"" >> ~/.bashrc
|
printf "%s" "DB_DATABASE_NAME=\"$DB_DATABASE_NAME\""
|
||||||
printf "%s" "DB_HOSTNAME=\"$DB_HOSTNAME\"" >> ~/.bashrc
|
printf "%s" "DB_PORT=\"$DB_PORT\""
|
||||||
printf "%s" "JWT_SECRET=\"$JWT_SECRET\"" >> ~/.bashrc
|
printf "%s" "DB_HOSTNAME=\"$DB_HOSTNAME\""
|
||||||
|
printf "%s" "JWT_SECRET=\"$JWT_SECRET\""
|
||||||
|
} >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -46,11 +46,13 @@ case $(bashio::config 'DB_TYPE') in
|
|||||||
bashio::log.blue "PHOTOPRISM_DATABASE_PASSWORD=$PHOTOPRISM_DATABASE_PASSWORD"
|
bashio::log.blue "PHOTOPRISM_DATABASE_PASSWORD=$PHOTOPRISM_DATABASE_PASSWORD"
|
||||||
|
|
||||||
if [ -f ~/.bashrc ]; then
|
if [ -f ~/.bashrc ]; then
|
||||||
printf "%s" "PHOTOPRISM_DATABASE_DRIVER=\"${PHOTOPRISM_DATABASE_DRIVER}\"" >> ~/.bashrc
|
{
|
||||||
printf "%s" "PHOTOPRISM_DATABASE_SERVER=\"${PHOTOPRISM_DATABASE_SERVER}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_DATABASE_DRIVER=\"${PHOTOPRISM_DATABASE_DRIVER}\""
|
||||||
printf "%s" "PHOTOPRISM_DATABASE_NAME=\"${PHOTOPRISM_DATABASE_NAME}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_DATABASE_SERVER=\"${PHOTOPRISM_DATABASE_SERVER}\""
|
||||||
printf "%s" "PHOTOPRISM_DATABASE_USER=\"${PHOTOPRISM_DATABASE_USER}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_DATABASE_NAME=\"${PHOTOPRISM_DATABASE_NAME}\""
|
||||||
printf "%s" "PHOTOPRISM_DATABASE_PASSWORD=\"${PHOTOPRISM_DATABASE_PASSWORD}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_DATABASE_USER=\"${PHOTOPRISM_DATABASE_USER}\""
|
||||||
|
printf "%s" "PHOTOPRISM_DATABASE_PASSWORD=\"${PHOTOPRISM_DATABASE_PASSWORD}\""
|
||||||
|
} >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.warning "Photoprism is using the Maria DB addon"
|
bashio::log.warning "Photoprism is using the Maria DB addon"
|
||||||
@@ -97,11 +99,13 @@ export PHOTOPRISM_ORIGINALS_PATH
|
|||||||
export PHOTOPRISM_IMPORT_PATH
|
export PHOTOPRISM_IMPORT_PATH
|
||||||
export PHOTOPRISM_BACKUP_PATH
|
export PHOTOPRISM_BACKUP_PATH
|
||||||
if [ -f ~/.bashrc ]; then
|
if [ -f ~/.bashrc ]; then
|
||||||
printf "%s" "PHOTOPRISM_UPLOAD_NSFW=\"${PHOTOPRISM_UPLOAD_NSFW}\"" >> ~/.bashrc
|
{
|
||||||
printf "%s" "PHOTOPRISM_STORAGE_PATH=\"${PHOTOPRISM_STORAGE_PATH}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_UPLOAD_NSFW=\"${PHOTOPRISM_UPLOAD_NSFW}\""
|
||||||
printf "%s" "PHOTOPRISM_ORIGINALS_PATH=\"${PHOTOPRISM_ORIGINALS_PATH}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_STORAGE_PATH=\"${PHOTOPRISM_STORAGE_PATH}\""
|
||||||
printf "%s" "PHOTOPRISM_IMPORT_PATH=\"${PHOTOPRISM_IMPORT_PATH}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_ORIGINALS_PATH=\"${PHOTOPRISM_ORIGINALS_PATH}\""
|
||||||
printf "%s" "PHOTOPRISM_BACKUP_PATH=\"${PHOTOPRISM_BACKUP_PATH}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_IMPORT_PATH=\"${PHOTOPRISM_IMPORT_PATH}\""
|
||||||
|
printf "%s" "PHOTOPRISM_BACKUP_PATH=\"${PHOTOPRISM_BACKUP_PATH}\""
|
||||||
|
} >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Test configs
|
# Test configs
|
||||||
@@ -127,8 +131,10 @@ if bashio::config.has_value "PUID" && bashio::config.has_value "PGID"; then
|
|||||||
sed -i "1a PHOTOPRISM_UID=$PHOTOPRISM_UID" /scripts/entrypoint.sh
|
sed -i "1a PHOTOPRISM_UID=$PHOTOPRISM_UID" /scripts/entrypoint.sh
|
||||||
sed -i "1a PHOTOPRISM_GID=$PHOTOPRISM_GID" /scripts/entrypoint.sh
|
sed -i "1a PHOTOPRISM_GID=$PHOTOPRISM_GID" /scripts/entrypoint.sh
|
||||||
if [ -f ~/.bashrc ]; then
|
if [ -f ~/.bashrc ]; then
|
||||||
printf "%s" "PHOTOPRISM_UID=\"${PHOTOPRISM_UID}\"" >> ~/.bashrc
|
{
|
||||||
printf "%s" "PHOTOPRISM_GID=\"${PHOTOPRISM_GID}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_UID=\"${PHOTOPRISM_UID}\""
|
||||||
|
printf "%s" "PHOTOPRISM_GID=\"${PHOTOPRISM_GID}\""
|
||||||
|
} >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -27,11 +27,13 @@ export PHOTOPRISM_ORIGINALS_PATH=$(bashio::config 'ORIGINALS_PATH')
|
|||||||
export PHOTOPRISM_IMPORT_PATH=$(bashio::config 'IMPORT_PATH')
|
export PHOTOPRISM_IMPORT_PATH=$(bashio::config 'IMPORT_PATH')
|
||||||
export PHOTOPRISM_BACKUP_PATH=$(bashio::config 'BACKUP_PATH')
|
export PHOTOPRISM_BACKUP_PATH=$(bashio::config 'BACKUP_PATH')
|
||||||
if [ -f ~/.bashrc ]; then
|
if [ -f ~/.bashrc ]; then
|
||||||
printf "%s" "PHOTOPRISM_UPLOAD_NSFW=\"${PHOTOPRISM_UPLOAD_NSFW}\"" >> ~/.bashrc
|
{
|
||||||
printf "%s" "PHOTOPRISM_STORAGE_PATH=\"${PHOTOPRISM_STORAGE_PATH}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_UPLOAD_NSFW=\"${PHOTOPRISM_UPLOAD_NSFW}\""
|
||||||
printf "%s" "PHOTOPRISM_ORIGINALS_PATH=\"${PHOTOPRISM_ORIGINALS_PATH}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_STORAGE_PATH=\"${PHOTOPRISM_STORAGE_PATH}\""
|
||||||
printf "%s" "PHOTOPRISM_IMPORT_PATH=\"${PHOTOPRISM_IMPORT_PATH}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_ORIGINALS_PATH=\"${PHOTOPRISM_ORIGINALS_PATH}\""
|
||||||
printf "%s" "PHOTOPRISM_BACKUP_PATH=\"${PHOTOPRISM_BACKUP_PATH}\"" >> ~/.bashrc
|
printf "%s" "PHOTOPRISM_IMPORT_PATH=\"${PHOTOPRISM_IMPORT_PATH}\""
|
||||||
|
printf "%s" "PHOTOPRISM_BACKUP_PATH=\"${PHOTOPRISM_BACKUP_PATH}\""
|
||||||
|
} >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if bashio::config.has_value 'CUSTOM_OPTIONS'; then
|
if bashio::config.has_value 'CUSTOM_OPTIONS'; then
|
||||||
|
|||||||
Reference in New Issue
Block a user