mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-01 03:36:06 +02:00
Export variable to bashrc
This commit is contained in:
@@ -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