Skip to content
Snippets Groups Projects
Commit 333dae9e authored by tpylak's avatar tpylak
Browse files

admin scripts for screening

SVN: 17506
parent 6d459b6a
No related branches found
No related tags found
Loading
#!/bin/bash
# makes a backup of all configuration files to the specified directory
CONF=$1 CONF=$1
BASE=`dirname "$0"` BASE=`dirname "$0"`
......
#!/bin/bash
# Installs openbis for screening for the first time.
# openbis will be installed in the parent directory of the directory where this script is located.
OPENBIS_DB=openbis_screening_mydb OPENBIS_DB=openbis_screening_mydb
......
DB=openbis_screening_dev #!/bin/bash
psql -U $DB -c "select datname,procpid,usename,current_query,waiting,xact_start FROM pg_catalog.pg_stat_activity" # lists all queries which are currently executed by the database engine
psql -U openbis -c "select datname,procpid,usename,current_query,waiting,xact_start FROM pg_catalog.pg_stat_activity"
#!/bin/bash
# Use with care!
# Overrides all user display settings with the settings of the template user.
DB=openbis_screening_mydb DB=openbis_screening_mydb
TEMPLATE_USER=openbis-user-name TEMPLATE_USER=openbis-user-name
......
#!/bin/bash
# Overrides all configuration files with those which can be found in the specified config backup directory.
# Assumes that openbis is installed in the parent directory of the directory where this script is located.
CONF=$1 CONF=$1
BASE=`dirname "$0"` BASE=`dirname "$0"`
......
# Updates openbis for screening. #!/bin/bash
# Upgrades openbis for screening.
# Assumes that openbis is installed in the parent directory of the directory where this script is located. # Assumes that openbis is installed in the parent directory of the directory where this script is located.
OPENBIS_DB=openbis_screening_lmc OPENBIS_DB=openbis_screening_lmc
......
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