mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-10 01:25:58 +02:00
Export variable to bashrc
This commit is contained in:
@@ -14,6 +14,7 @@ export IMMICH_MEDIA_LOCATION="$DATA_LOCATION"
|
||||
if [ -d /var/run/s6/container_environment ]; then
|
||||
printf "%s" "$DATA_LOCATION" > /var/run/s6/container_environment/IMMICH_MEDIA_LOCATION
|
||||
fi
|
||||
if [ -f ~/.bashrc ]; then printf "%s" "IMMICH_MEDIA_LOCATION=\"$DATA_LOCATION\"" >> ~/.bashrc; fi
|
||||
|
||||
echo "... check $DATA_LOCATION folder exists"
|
||||
mkdir -p "$DATA_LOCATION"
|
||||
|
||||
@@ -82,3 +82,11 @@ if [ -d /var/run/s6/container_environment ]; then
|
||||
printf "%s" "$DB_HOSTNAME" > /var/run/s6/container_environment/DB_HOSTNAME
|
||||
printf "%s" "$JWT_SECRET" > /var/run/s6/container_environment/JWT_SECRET
|
||||
fi
|
||||
if [ -f ~/.bashrc ]; then
|
||||
printf "%s" "DB_USERNAME=\"$DB_USERNAME\"" >> ~/.bashrc
|
||||
printf "%s" "DB_PASSWORD=\"$DB_PASSWORD\"" >> ~/.bashrc
|
||||
printf "%s" "DB_DATABASE_NAME=\"$DB_DATABASE_NAME\"" >> ~/.bashrc
|
||||
printf "%s" "DB_PORT=\"$DB_PORT\"" >> ~/.bashrc
|
||||
printf "%s" "DB_HOSTNAME=\"$DB_HOSTNAME\"" >> ~/.bashrc
|
||||
printf "%s" "JWT_SECRET=\"$JWT_SECRET\"" >> ~/.bashrc
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user