From 2b5f9ac9d698e55ee8d5ae6639872700f6fa20aa Mon Sep 17 00:00:00 2001
From: Daniel Berteaud sections
---
templates/default/documentation.html.ep | 40 ++++++++++++---------------------
1 file changed, 14 insertions(+), 26 deletions(-)
diff --git a/templates/default/documentation.html.ep b/templates/default/documentation.html.ep
index 03e93fc..adc3196 100644
--- a/templates/default/documentation.html.ep
+++ b/templates/default/documentation.html.ep
@@ -110,8 +110,7 @@ gpgcheck=1
gpgkey=http://repo.firewall-services.com/RPM-GPG-KEY
enablegroups=0
_EOF
-yum install epel-release
-
+yum install epel-release
cd /opt -git clone https://github.com/dani/vroom.git -+git clone https://github.com/dani/vroom.git
systemctl enable mariadb.service -systemctl start mariadb.service -+systemctl start mariadb.service Now, create a new database for VROOM
-mysql -uroot -+mysql -uroot
CREATE DATABASE `vroom` CHARACTER SET utf8 COLLATE utf8_general_ci; GRANT ALL PRIVILEGES ON `vroom`.* TO 'vroom'@'localhost' IDENTIFIED BY 'MySuperPassw0rd'; -FLUSH PRIVILEGES; -+FLUSH PRIVILEGES;
It's better to generate a long, random password here. Just write it somewhere, you'll need it later @@ -161,8 +155,7 @@ FLUSH PRIVILEGES;
Now that we have our MySQL database, we can create the tables
-mysql -uroot vroom < /opt/vroom/docs/database/schema.mysql -+mysql -uroot vroom < /opt/vroom/docs/database/schema.mysql
echo "LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so" \\ - > /etc/httpd/conf.modules.d/00-proxy_ws.conf -+ > /etc/httpd/conf.modules.d/00-proxy_ws.conf
cp /opt/vroom/docs/systemd/vroom.service /etc/systemd/system/ systemctl daemon-reload -systemctl enable vroom -+systemctl enable vroom
Now, we just need to configure vroom itself. Just copy the sample conf file
-cp /opt/vroom/conf/settings.ini.dist /opt/vroom/conf/settings.ini -+cp /opt/vroom/conf/settings.ini.dist /opt/vroom/conf/settings.ini And edit it to your need
If you want to customize the look and feel of VROOM, you can create your own templates.
To do so, just copy the existing ones
-
+cp -a /opt/vroom/templates/default /opt/vroom/templates/my_templateThen edit /opt/vroom/conf/settings.ini and set template = 'my_template' Restart VROOM so the configuration change is applied -
+systemctl restart vroom.serviceAnd you can start modifying your template.
As VROOM is still in early development, you'll have to closely follow how the default template evolve and merge the changes in your own template