mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 22:34:11 +02:00
Create ~/.bashrc https://github.com/alexbelgium/hassio-addons/issues/798
This commit is contained in:
@@ -14,7 +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
|
||||
printf "%s" "IMMICH_MEDIA_LOCATION=\"$DATA_LOCATION\"" >> ~/.bashrc
|
||||
|
||||
echo "... check $DATA_LOCATION folder exists"
|
||||
mkdir -p "$DATA_LOCATION"
|
||||
|
||||
@@ -82,7 +82,7 @@ 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\""
|
||||
printf "%s" "DB_PASSWORD=\"$DB_PASSWORD\""
|
||||
@@ -91,4 +91,3 @@ if [ -f ~/.bashrc ]; then
|
||||
printf "%s" "DB_HOSTNAME=\"$DB_HOSTNAME\""
|
||||
printf "%s" "JWT_SECRET=\"$JWT_SECRET\""
|
||||
} >> ~/.bashrc
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user