Skip to content
Snippets Groups Projects
Commit ea8f06b8 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

additional log info

parent 59ee8fa0
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!583Gitlab install test
......@@ -69,6 +69,7 @@ exec_sql_file(){
PGPASSWORD=$DB_PASSWORD psql -h $DB_HOST -p $DB_PORT -U $DB_USERNAME $DB_DATABASE_NAME -f $1 >>$LOG_FILE 2>>$LOG_FILE
}
create_db(){
log "Create db: (remote=$IS_REMOTE_DB)"
if [ $IS_REMOTE_DB = false ]
then
su - postgres -c "createuser -d -r -s -p $DB_PORT $DB_USERNAME" >>$LOG_FILE 2>>$LOG_FILE
......@@ -88,12 +89,14 @@ create_db(){
fi
}
stop_postgres() {
log "Stop postgres: (remote=$IS_REMOTE_DB)"
if [ $IS_REMOTE_DB = false ]
then
invoke-rc.d postgresql stop || true
fi
}
start_postgres() {
log "Start postgres: (remote=$IS_REMOTE_DB)"
if [ $IS_REMOTE_DB = false ]
then
invoke-rc.d postgresql restart
......
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