collection.dockerfile/centos8/observium.decrecated/initialise.sh

9 lines
441 B
Bash

/usr/bin/pidproxy /run/mariadb/mariadb.pid /usr/bin/mysqld_safe --pid-file=/run/mariadb/mariadb.pid &
mysql -Nse 'create database observium default charset utf8 collate utf8_general_ci;'
mysql -Nse "create user observium@localhost identified by '25d38c2b7ffa43d94621b578';"
mysql -Nse 'grant all on observium.* to observium@localhost;'
mysql -Nse 'flush privileges;'
cd /opt/observium
./discovery.php -u
./adduser.php observium observium 10