set DB port to config.php.sample (#74)

With this fix we can use DB_PORT variable
pull/78/head
Vladislav Rusanov 2021-03-03 21:31:28 +02:00 committed by GitHub
parent 3c5c131426
commit e895c73167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
'database' => array (
'driver' => 'mysql',
'host' => '<DB_HOST>',
'port' => '<DB_PORT>',
'database' => '<DB_NAME>',
'username' => '<DB_USER>',
'password' => '<DB_PASS>',

View File

@ -84,6 +84,7 @@ if [ -e '/flarum/app/public/assets/rev-manifest.json' ]; then
-e "s|<DB_USER>|${DB_USER}|g" \
-e "s|<DB_PASS>|${DB_PASS}|g" \
-e "s|<DB_PREF>|${DB_PREF}|g" \
-e "s|<DB_PORT>|${DB_PORT}|g" \
-e "s|<FORUM_URL>|${FORUM_URL}|g" /flarum/app/config.php.sample
cp -p /flarum/app/config.php.sample /flarum/app/config.php