This file is indexed.

/usr/share/tripleo-image-elements/os-svc-install/bin/os-db-create is in python-tripleo-image-elements 0.7.1-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -eu

function create_db {
  local sql="
    create database if not exists $1;
    grant all on $1.* to '$2'@'localhost' identified by '$3';
    grant all on $1.* to '$2'@'%'         identified by '$3';
    flush privileges;"
  echo "$sql" | mysql
}

if [ $# -lt 3 ]; then
  echo "Usage: os-db-create DB_NAME DB_USER DB_PASS"
  exit 1
fi

create_db $*