Merge pull request #105 from zabbix/master

Fixed PostgreSQL default root account
This commit is contained in:
Alexey Pustovalov 2017-05-01 17:25:56 +03:00 committed by GitHub
commit 462b628ce3
20 changed files with 60 additions and 0 deletions

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"

View File

@ -202,6 +202,9 @@ check_db_connect_postgresql() {
if [ "${USE_DB_ROOT_USER}" == "true" ]; then if [ "${USE_DB_ROOT_USER}" == "true" ]; then
echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}" echo "* DB_SERVER_ROOT_USER: ${DB_SERVER_ROOT_USER}"
echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}" echo "* DB_SERVER_ROOT_PASS: ${DB_SERVER_ROOT_PASS}"
else
DB_SERVER_ROOT_USER=${DB_SERVER_ZBX_USER}
DB_SERVER_ROOT_PASS=${DB_SERVER_ZBX_PASS}
fi fi
echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}" echo "* DB_SERVER_ZBX_USER: ${DB_SERVER_ZBX_USER}"
echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}" echo "* DB_SERVER_ZBX_PASS: ${DB_SERVER_ZBX_PASS}"