mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-05-30 06:40:22 +02:00
Added Zabbix Appliance based on RHEL image
This commit is contained in:
parent
706d0f5e61
commit
97c205159c
@ -81,9 +81,13 @@ configure_db_mysql() {
|
|||||||
|
|
||||||
echo "** Starting MySQL server in background mode"
|
echo "** Starting MySQL server in background mode"
|
||||||
|
|
||||||
|
if [ "$(id -u)" == '0' ]; then
|
||||||
|
mysql_user="--user=zabbix"
|
||||||
|
fi
|
||||||
|
|
||||||
nohup $MYSQLD --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin \
|
nohup $MYSQLD --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin \
|
||||||
--log-output=none --pid-file=/var/lib/mysql/mysqld.pid \
|
--log-output=none --pid-file=/var/lib/mysql/mysqld.pid \
|
||||||
--port=3306 --character-set-server=utf8 --collation-server=utf8_bin &
|
--port=3306 --character-set-server=utf8 --collation-server=utf8_bin $mysql_user &
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare_system() {
|
prepare_system() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user