Add debug toggle

main
Jerry Aldrich 3 years ago
parent 2d2ac0c267
commit c95d8981eb
  1. 6
      README.md
  2. 11
      entrypoint.sh
  3. 2
      znc.conf.example

@ -28,3 +28,9 @@ docker run --rm -it \
-p 8000:8000 \
jerryaldrichiii/znc
```
### Enabling debug mode
```
-e ZNC_DEBUG=true
```

@ -13,4 +13,13 @@ if [ -f /bootstrap/tls/znc.key ] && [ -f /bootstrap/tls/znc.crt ]; then
cat /bootstrap/tls/znc.key /bootstrap/tls/znc.crt > /srv/znc/tls/znc.pem
fi
/opt/znc/bin/znc --foreground --datadir "$DATADIR"
if [ "$ZNC_DEBUG" = "true" ]; then
ZNC_DEBUG="--debug"
else
ZNC_DEBUG=""
fi
/opt/znc/bin/znc \
--foreground \
$ZNC_DEBUG \
--datadir "$DATADIR"

@ -71,7 +71,7 @@ Version = 1.8.1
</Network>
// To generate this block run:
// docker run -it --entrypoint "/opt/znc/bin/znc -s" jerryaldrichiii/znc
// docker run -it --entrypoint "/opt/znc/bin/znc" jerryaldrichiii/znc -s
<Pass password>
Method = sha256
Hash = e91a3f131f4f2aee652f6ecfca64330bfc74501445208320d6e114e270fa3c34

Loading…
Cancel
Save