Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/79b138cc6de0f102a9cf6d7998f96ad3c92aec84?style=split&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
1 additions and
2 deletions
@ -31,8 +31,7 @@ msg_info "Setting up PostgreSQL"
$STD apt-get install -y postgresql
$STD apt-get install -y postgresql
DB_NAME = zabbixdb
DB_NAME = zabbixdb
DB_USER = zabbix
DB_USER = zabbix
RAW_PASS = " $( openssl rand -base64 18 | cut -c1-13) "
DB_PASS = $( openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)
DB_PASS = $( printf '%s\n' " $RAW_PASS " | sed 's/[&/\]/\\&/g' )
$STD sudo -u postgres psql -c " CREATE ROLE $DB_USER WITH LOGIN PASSWORD ' $DB_PASS '; "
$STD sudo -u postgres psql -c " CREATE ROLE $DB_USER WITH LOGIN PASSWORD ' $DB_PASS '; "
$STD sudo -u postgres psql -c " CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0; "
$STD sudo -u postgres psql -c " CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0; "
$STD sudo -u postgres psql -c " ALTER ROLE $DB_USER SET client_encoding TO 'utf8'; "
$STD sudo -u postgres psql -c " ALTER ROLE $DB_USER SET client_encoding TO 'utf8'; "