distinguish rpm vs deb

This commit is contained in:
matthewwall
2016-09-08 10:29:17 -04:00
parent 857342ee96
commit feb47241d9

View File

@@ -4231,14 +4231,14 @@ sudo /etc/init.d/weewx restart</pre>
<p>The reports generated by <span class='code'>weewx</span> can be
served by a web server running on the same computer as
<span class='code'>weewx</span>. These are instructions for making
<span class='code'>weewx</span> reports available via the apache
<span class='code'>weewx</span> reports available via the Apache
web server. The process is similar for other web servers such as
<span class='code'>nginx</span> or
<span class='code'>lighthttpd</span>.</p>
<ol>
<li>
<p>Install the apache web server on the computer on which
<p>Install the Apache web server on the computer on which
<span class='code'>weewx</span> is running. For example, on Debian
systems:</p>
@@ -4246,11 +4246,13 @@ sudo /etc/init.d/weewx restart</pre>
</li>
<li>
<p>Copy the Apache configuration snippet that comes with
<span class="code">weewx</span> to the apache configuration directory.
</p>
<p>Configure Apache to see the <span class="code">weewx</span> reports.</p>
<p>If <span class='code'>weewx</span> was installed from DEB or RPM:</p>
<p>If <span class='code'>weewx</span> was installed from RPM, there is
nothing to do since the reports are placed in the Apache DocumentRoot
at <span class='code'>/var/www/html/weewx</span></p>
<p>If <span class='code'>weewx</span> was installed from DEB:</p>
<pre class='tty cmd'>sudo ln -s /etc/weewx/apache/conf.d/weewx.conf /etc/apache2/conf.d</pre>
@@ -4273,7 +4275,7 @@ sudo /etc/init.d/weewx restart</pre>
</li>
<li>
<p>Restart apache:</p>
<p>Restart Apache:</p>
<pre class='tty cmd'>sudo /etc/init.d/apache2 restart</pre>
</li>