add logo configuration
Bu işleme şunda yer alıyor:
ebeveyn
4a12a1a736
işleme
40d236345a
|
@ -53,6 +53,12 @@ Inclure les graphiques du jour générés par Munin (rapport mail uniquement) :
|
|||
export MUNIN_DIRECTORY="/var/cache/munin/www/foo/bar/"
|
||||
```
|
||||
|
||||
Utiliser votre logo :
|
||||
|
||||
```bash
|
||||
export LOGO_URL=https://www.example.com/logo.png
|
||||
```
|
||||
|
||||
Le projet inclut un rendu HTML et un rendu en texte. Le rendu par défaut est l'HTML.
|
||||
Vous pouvez créer vos templates (se référer au code source).
|
||||
|
||||
|
|
3
report
3
report
|
@ -8,6 +8,9 @@
|
|||
# export MUNIN_DIRECTORY=/var/cache/munin/www/localhost/localhost
|
||||
# export SMART_DEVICES="/dev/sda /dev/sdb /dev/sdc"
|
||||
|
||||
# export LOGO_URL=
|
||||
# -> default is: https://upload.deblan.org/u/2019-05/5cefbc0a.png
|
||||
|
||||
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
export SCRIPT_NAME="$(realpath "$0")"
|
||||
|
|
|
@ -7,4 +7,12 @@
|
|||
export hostname="$(get_hostname)"
|
||||
export date="$(get_date)"
|
||||
|
||||
if [ -n "$LOGO_URL" ]; then
|
||||
logo="$LOGO_URL"
|
||||
else
|
||||
logo="https://upload.deblan.org/u/2019-05/5cefbc0a.png"
|
||||
fi
|
||||
|
||||
export logo
|
||||
|
||||
render_template header
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
<table width="100%">
|
||||
<tr>
|
||||
<td valign="middle" width="245">
|
||||
<img src="https://upload.deblan.org/u/2019-05/5cefbc0a.png">
|
||||
<img src="${logo}">
|
||||
</td>
|
||||
<td width="10"></td>
|
||||
<td valign="middle" style="font-size: 22px">
|
||||
|
|
Yükleniyor…
Yeni konuda referans