mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-15 02:20:31 +02:00
Github bot : script beautyshied
This commit is contained in:
@@ -48,10 +48,10 @@ if [ -d /var/run/s6/container_environment ]; then
|
||||
printf "%s" "$LOCATION" > /var/run/s6/container_environment/HOME
|
||||
printf "%s" "$LOCATION" > /var/run/s6/container_environment/FM_HOME
|
||||
fi
|
||||
{
|
||||
{
|
||||
printf "%s" "HOME=\"$LOCATION\""
|
||||
printf "%s" "FM_HOME=\"$LOCATION\""
|
||||
} >> ~/.bashrc
|
||||
} >> ~/.bashrc
|
||||
|
||||
usermod --home "$LOCATION" abc
|
||||
|
||||
|
||||
@@ -83,11 +83,11 @@ if [ -d /var/run/s6/container_environment ]; then
|
||||
printf "%s" "$JWT_SECRET" > /var/run/s6/container_environment/JWT_SECRET
|
||||
fi
|
||||
|
||||
{
|
||||
{
|
||||
printf "%s" "DB_USERNAME=\"$DB_USERNAME\""
|
||||
printf "%s" "DB_PASSWORD=\"$DB_PASSWORD\""
|
||||
printf "%s" "DB_DATABASE_NAME=\"$DB_DATABASE_NAME\""
|
||||
printf "%s" "DB_PORT=\"$DB_PORT\""
|
||||
printf "%s" "DB_HOSTNAME=\"$DB_HOSTNAME\""
|
||||
printf "%s" "JWT_SECRET=\"$JWT_SECRET\""
|
||||
} >> ~/.bashrc
|
||||
} >> ~/.bashrc
|
||||
|
||||
@@ -97,13 +97,13 @@ export PHOTOPRISM_ORIGINALS_PATH
|
||||
export PHOTOPRISM_IMPORT_PATH
|
||||
export PHOTOPRISM_BACKUP_PATH
|
||||
|
||||
{
|
||||
{
|
||||
printf "%s" "PHOTOPRISM_UPLOAD_NSFW=\"${PHOTOPRISM_UPLOAD_NSFW}\""
|
||||
printf "%s" "PHOTOPRISM_STORAGE_PATH=\"${PHOTOPRISM_STORAGE_PATH}\""
|
||||
printf "%s" "PHOTOPRISM_ORIGINALS_PATH=\"${PHOTOPRISM_ORIGINALS_PATH}\""
|
||||
printf "%s" "PHOTOPRISM_IMPORT_PATH=\"${PHOTOPRISM_IMPORT_PATH}\""
|
||||
printf "%s" "PHOTOPRISM_BACKUP_PATH=\"${PHOTOPRISM_BACKUP_PATH}\""
|
||||
} >> ~/.bashrc
|
||||
} >> ~/.bashrc
|
||||
|
||||
# Test configs
|
||||
for variabletest in $PHOTOPRISM_STORAGE_PATH $PHOTOPRISM_ORIGINALS_PATH $PHOTOPRISM_IMPORT_PATH $PHOTOPRISM_BACKUP_PATH; do
|
||||
|
||||
@@ -27,13 +27,13 @@ export PHOTOPRISM_ORIGINALS_PATH=$(bashio::config 'ORIGINALS_PATH')
|
||||
export PHOTOPRISM_IMPORT_PATH=$(bashio::config 'IMPORT_PATH')
|
||||
export PHOTOPRISM_BACKUP_PATH=$(bashio::config 'BACKUP_PATH')
|
||||
|
||||
{
|
||||
{
|
||||
printf "%s" "PHOTOPRISM_UPLOAD_NSFW=\"${PHOTOPRISM_UPLOAD_NSFW}\""
|
||||
printf "%s" "PHOTOPRISM_STORAGE_PATH=\"${PHOTOPRISM_STORAGE_PATH}\""
|
||||
printf "%s" "PHOTOPRISM_ORIGINALS_PATH=\"${PHOTOPRISM_ORIGINALS_PATH}\""
|
||||
printf "%s" "PHOTOPRISM_IMPORT_PATH=\"${PHOTOPRISM_IMPORT_PATH}\""
|
||||
printf "%s" "PHOTOPRISM_BACKUP_PATH=\"${PHOTOPRISM_BACKUP_PATH}\""
|
||||
} >> ~/.bashrc
|
||||
} >> ~/.bashrc
|
||||
|
||||
if bashio::config.has_value 'CUSTOM_OPTIONS'; then
|
||||
CUSTOMOPTIONS=$(bashio::config 'CUSTOM_OPTIONS')
|
||||
|
||||
@@ -42,8 +42,8 @@ sed -i "s|/share/webtop_kde|$LOCATION|g" $(find /etc/s6-overlay/s6-rc.d -type f)
|
||||
if [ -d /var/run/s6/container_environment ]; then printf "%s" "$LOCATION" > /var/run/s6/container_environment/HOME; fi
|
||||
if [ -d /var/run/s6/container_environment ]; then printf "%s" "$LOCATION" > /var/run/s6/container_environment/FM_HOME; fi
|
||||
{
|
||||
printf "%s" "HOME=\"$LOCATION\""
|
||||
printf "%s" "FM_HOME=\"$LOCATION\""
|
||||
printf "%s" "HOME=\"$LOCATION\""
|
||||
printf "%s" "FM_HOME=\"$LOCATION\""
|
||||
} >> ~/.bashrc
|
||||
|
||||
usermod --home "$LOCATION" abc
|
||||
|
||||
Reference in New Issue
Block a user