Skip to content
Snippets Groups Projects
Commit abd6d315 authored by kaloyane's avatar kaloyane
Browse files

[LMS-2260] minor: redirect output of check commands to /dev/null. it is okey...

[LMS-2260] minor: redirect output of check commands to /dev/null. it is okey for them to fail, but we must no show the output

SVN: 21441
parent df7da61a
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ source $BASE/../env
function createPostgresUserIfNeeded() {
postgresUser=$1
psql -U $postgresUser -d template1 -c '\dt' || psql -U $DB_USER_NAME -c "create role $postgresUser with LOGIN"
psql -U $postgresUser -d template1 -c '\dt' &> /dev/null || psql -U $DB_USER_NAME -c "create role $postgresUser with LOGIN"
}
......
#!/bin/bash
BASE=`dirname "$0"`
if [ ${BASE#/} == ${BASE} ]; then
BASE="`pwd`/${BASE}"
fi
function remove64BitInstructionFromConfigFile()
{
confFileName=$1
sed -i.backup "s/-d64//g" $confFileName
}
function remove64BitInstructionFromConfig()
{
remove64BitInstructionFromConfigFile $BASE/../../servers/openBIS-server/jetty/bin/openbis.conf
remove64BitInstructionFromConfigFile $BASE/../../servers/datastore_server/etc/datastore_server.conf
}
java -d64 -version &> /dev/null || remove64BitInstructionFromConfig
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment