Skip to content

Commit

Permalink
[dist] redirect errors to /dev/null when checking DB in setup-applian…
Browse files Browse the repository at this point in the history
…ce.sh

Error messages in journal may confuse admins.
  • Loading branch information
M0ses committed Jul 5, 2021
1 parent 34bc8a0 commit bb97427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/setup-appliance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function adapt_worker_jobs {
function prepare_database_setup {

cd $apidir
RAILS_ENV=production bin/rails db:migrate:status > /dev/null
RAILS_ENV=production bin/rails db:migrate:status > /dev/null 2>&1

if [[ $? > 0 ]];then
echo "Initialize MySQL databases (first time only)"
Expand Down

0 comments on commit bb97427

Please sign in to comment.