This commit is contained in:
Alexandre
2023-04-24 12:24:47 +02:00
parent 70f4d23a9c
commit 966167d780
4 changed files with 37 additions and 25 deletions

View File

@@ -83,10 +83,12 @@ if [ -d /var/run/s6/container_environment ]; then
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
{
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
fi