Remove final CR in <pre> sections

master
Daniel Berteaud 10 years ago
parent 1371b52f6c
commit 2b5f9ac9d6
  1. 40
      templates/default/documentation.html.ep

@ -110,8 +110,7 @@ gpgcheck=1
gpgkey=http://repo.firewall-services.com/RPM-GPG-KEY gpgkey=http://repo.firewall-services.com/RPM-GPG-KEY
enablegroups=0 enablegroups=0
_EOF _EOF
yum install epel-release yum install epel-release</pre>
</pre>
</p> </p>
<h3 id="c7_dependencies"> <h3 id="c7_dependencies">
Install dependencies Install dependencies
@ -123,8 +122,7 @@ yum install git tar wget httpd mod_ssl openssl mariadb-server \\
'perl(Mojolicious)' 'perl(Mojolicious::Plugin::I18N)' 'perl(Mojolicious::Plugin::Mail)' \\ 'perl(Mojolicious)' 'perl(Mojolicious::Plugin::I18N)' 'perl(Mojolicious::Plugin::Mail)' \\
'perl(Crypt::SaltedHash)' 'perl(Etherpad::API)' 'perl(LWP::Protocol::https)' \\ 'perl(Crypt::SaltedHash)' 'perl(Etherpad::API)' 'perl(LWP::Protocol::https)' \\
'perl(Sesion::Token)' 'perl(Mojolicious::Plugin::Database)' 'perl(Email::Valid)' \\ 'perl(Sesion::Token)' 'perl(Mojolicious::Plugin::Database)' 'perl(Email::Valid)' \\
'perl(Config::Simple)' 'perl(Session::Token)' 'perl(URI)' 'perl(Config::Simple)' 'perl(Session::Token)' 'perl(URI)'</pre>
</pre>
</p> </p>
<h3 id="c7_clone_git"> <h3 id="c7_clone_git">
Clone the repository Clone the repository
@ -133,8 +131,7 @@ yum install git tar wget httpd mod_ssl openssl mariadb-server \\
Lets install VROOM in <strong>/opt/vroom</strong> Lets install VROOM in <strong>/opt/vroom</strong>
<pre> <pre>
cd /opt cd /opt
git clone https://github.com/dani/vroom.git git clone https://github.com/dani/vroom.git</pre>
</pre>
</p> </p>
<h3 id="c7_database"> <h3 id="c7_database">
Database Database
@ -143,17 +140,14 @@ git clone https://github.com/dani/vroom.git
A database will be used to store rooms configuration, you must enable the server. A database will be used to store rooms configuration, you must enable the server.
<pre> <pre>
systemctl enable mariadb.service systemctl enable mariadb.service
systemctl start mariadb.service systemctl start mariadb.service</pre>
</pre>
Now, create a new database for VROOM Now, create a new database for VROOM
<pre> <pre>
mysql -uroot mysql -uroot</pre>
</pre>
<pre> <pre>
CREATE DATABASE `vroom` CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE DATABASE `vroom` CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON `vroom`.* TO 'vroom'@'localhost' IDENTIFIED BY 'MySuperPassw0rd'; GRANT ALL PRIVILEGES ON `vroom`.* TO 'vroom'@'localhost' IDENTIFIED BY 'MySuperPassw0rd';
FLUSH PRIVILEGES; FLUSH PRIVILEGES;</pre>
</pre>
</p> </p>
<p class="alert alert-info"> <p class="alert alert-info">
It's better to generate a long, random password here. Just write it somewhere, you'll need it later 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;
<p> <p>
Now that we have our MySQL database, we can create the tables Now that we have our MySQL database, we can create the tables
<pre> <pre>
mysql -uroot vroom < /opt/vroom/docs/database/schema.mysql mysql -uroot vroom < /opt/vroom/docs/database/schema.mysql</pre>
</pre>
</p> </p>
<h3 id="c7_apache"> <h3 id="c7_apache">
Setup Apache Setup Apache
@ -185,8 +178,7 @@ mysql -uroot vroom < /opt/vroom/docs/database/schema.mysql
You also have to make sure the <strong>mod_proxy_ws</strong> module is enabled, which is not the case by default on CentOS 7 You also have to make sure the <strong>mod_proxy_ws</strong> module is enabled, which is not the case by default on CentOS 7
<pre> <pre>
echo "LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so" \\ 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</pre>
</pre>
</p> </p>
<h3 id="c7_systemd_unit"> <h3 id="c7_systemd_unit">
Setup systemd units Setup systemd units
@ -196,8 +188,7 @@ echo "LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so" \\
<pre> <pre>
cp /opt/vroom/docs/systemd/vroom.service /etc/systemd/system/ cp /opt/vroom/docs/systemd/vroom.service /etc/systemd/system/
systemctl daemon-reload systemctl daemon-reload
systemctl enable vroom systemctl enable vroom</pre>
</pre>
</p> </p>
<h2 id="config_vroom"> <h2 id="config_vroom">
Configure VROOM Configure VROOM
@ -205,8 +196,7 @@ systemctl enable vroom
<p> <p>
Now, we just need to configure vroom itself. Just copy the sample conf file Now, we just need to configure vroom itself. Just copy the sample conf file
<pre> <pre>
cp /opt/vroom/conf/settings.ini.dist /opt/vroom/conf/settings.ini cp /opt/vroom/conf/settings.ini.dist /opt/vroom/conf/settings.ini</pre>
</pre>
And edit it to your need And edit it to your need
</p> </p>
<h1 id="customize"> <h1 id="customize">
@ -226,14 +216,12 @@ cp /opt/vroom/conf/settings.ini.dist /opt/vroom/conf/settings.ini
<p> <p>
If you want to customize the look and feel of VROOM, you can create your own templates. 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 To do so, just copy the existing ones
<pres> <pre>
cp -a /opt/vroom/templates/default /opt/vroom/templates/my_template cp -a /opt/vroom/templates/default /opt/vroom/templates/my_template</pre>
</pres>
Then edit <strong>/opt/vroom/conf/settings.ini</strong> and set <kbd>template = 'my_template'</kbd> Then edit <strong>/opt/vroom/conf/settings.ini</strong> and set <kbd>template = 'my_template'</kbd>
Restart VROOM so the configuration change is applied Restart VROOM so the configuration change is applied
<pres> <pre>
systemctl restart vroom.service systemctl restart vroom.service</pre>
</pres>
And you can start modifying your template. And you can start modifying your template.
<p class="alert alert-danger"> <p class="alert alert-danger">
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 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

Loading…
Cancel
Save