File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1+ name : Comment on invalid interaction
2+ on :
3+ issues :
4+ types :
5+ - labeled
6+ jobs :
7+ add-comment-on-invalid :
8+ if : github.event.label.name == 'invalid'
9+ permissions :
10+ issues : write
11+ uses : linuxserver/github-workflows/.github/workflows/invalid-interaction-helper.yml@v1
12+ secrets : inherit
Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
271271
272272## Versions
273273
274+ * ** 21.12.22:** - Update db info in .env file when env vars are updated.
274275* ** 10.10.22:** - Remove password escape logic which caused problems for a small subset of users.
275276* ** 20.08.22:** - Rebasing to alpine 3.15 with php8. Restructure nginx configs ([ see changes announcement] ( https://info.linuxserver.io/issues/2022-08-20-nginx-base ) ).
276277* ** 14.03.22:** - Add symlinks for theme support.
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ app_setup_block: |
101101
102102# changelog
103103changelogs :
104+ - { date: "21.12.22:", desc: "Update db info in .env file when env vars are updated." }
104105 - { date: "10.10.22:", desc: "Remove password escape logic which caused problems for a small subset of users." }
105106 - { date: "20.08.22:", desc: "Rebasing to alpine 3.15 with php8. Restructure nginx configs ([see changes announcement](https://info.linuxserver.io/issues/2022-08-20-nginx-base))." }
106107 - { date: "14.03.22:", desc: "Add symlinks for theme support." }
Original file line number Diff line number Diff line change 6363if [ "${DB_USER}" ];
6464 then
6565 echo "Running config - db_user set"
66- sed -i "s/DB_HOST=localhost /DB_HOST=${DB_HOST}/g" /config/www/.env
67- sed -i "s/DB_DATABASE=database_database /DB_DATABASE=${DB_DATABASE}/g" /config/www/.env
68- sed -i "s/DB_USERNAME=database_username /DB_USERNAME=${DB_USER}/g" /config/www/.env
69- sed -i "s/DB_PASSWORD=database_user_password /DB_PASSWORD=${DB_PASS}/g" /config/www/.env
66+ sed -i "s/DB_HOST=.* /DB_HOST=${DB_HOST}/g" /config/www/.env
67+ sed -i "s/DB_DATABASE=.* /DB_DATABASE=${DB_DATABASE}/g" /config/www/.env
68+ sed -i "s/DB_USERNAME=.* /DB_USERNAME=${DB_USER}/g" /config/www/.env
69+ sed -i "s/DB_PASSWORD=.* /DB_PASSWORD=${DB_PASS}/g" /config/www/.env
7070fi
7171
7272# set appurl
You can’t perform that action at this time.
0 commit comments