collection.dockerfile/centos8/observium/initialise.sh

9 lines
441 B
Bash
Raw Normal View History

2022-01-17 15:56:05 +08:00
/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