]> 91.132.146.200 Git - aranea.git/commitdiff
adding information about cron and local perl lib usage master
authorBanana <mail@bananas-playground.net>
Tue, 12 Nov 2024 07:18:49 +0000 (08:18 +0100)
committerBanana <mail@bananas-playground.net>
Tue, 12 Nov 2024 07:18:49 +0000 (08:18 +0100)
Signed-off-by: Banana <mail@bananas-playground.net>
TODO
crawler/documentation/cron.md [new file with mode: 0644]

diff --git a/TODO b/TODO
index f7a6f7922c2c46ea7430affe26a0d9ab53b360f1..94101ffd2d352e56dc8faa8c653c0094251f0ceb 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,3 +1,4 @@
 Set correct timezone. Maybe in config?
 Set correct timezone. Maybe in config?
+Use system available perl modules to avoid local cpan usage.
 Some sort of matching against spam domain list?
 Documentation for web interface and installation.
 Some sort of matching against spam domain list?
 Documentation for web interface and installation.
diff --git a/crawler/documentation/cron.md b/crawler/documentation/cron.md
new file mode 100644 (file)
index 0000000..01702bf
--- /dev/null
@@ -0,0 +1,19 @@
+# Cron usage
+
+If any of the perl requirements are not installed globally or with the system package manager,
+make sure to export the custom lib path.
+
+Example:
+
+```
+#!/bin/bash
+
+PATH="/home/user/perl5/bin${PATH:+:${PATH}}"; export PATH;
+PERL5LIB="/home/user/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
+
+cd /home/user/aranea/crawler
+./aranea-runner
+
+```
+
+The `PERL5LIB` can be found in the user `.bashrc` if cpan is used.