R4SAS
7b444c3f89
add comment ignore
8 years ago
Hidden Z
c07b087b52
Update issues URL
8 years ago
Hidden Z
06468a3c7c
Properly setup django in standalone scripts
...
https://docs.djangoproject.com/en/dev/releases/1.7/#standalone-scripts
9 years ago
Hidden Z
6e3862d7ab
Convert tabs to spaces
9 years ago
Hidden Z
1fbcdeb4bd
py-i2phosts-injector: fix splitting entries
...
Multiple split by '=' character may cause wrong hash addition because
trailing '==' were stripped from base64 hash. These trailing '==' are
used in ECDSA keys, see http://zzz.i2p/topics/1763
10 years ago
Hidden Z
484cb5bee7
Update default DJANGO_PROJECT_PATH
11 years ago
Hidden Z
a432ef81a9
Update DJANGO_SETTINGS_MODULE in scripts
11 years ago
Hidden Z
4a1d0a1f96
Move py-i2phosts-* to bin/
11 years ago
Hidden Z
dcc6699c33
py-i2phosts-injector: fill date_added field with UTC date
14 years ago
Hidden Z
3d7433f44b
py-i2phosts-injector: add trailing newline where needed
14 years ago
Hidden Z
56c177852c
py-i2phosts-injector: rewrite choosing of hosts.txt file for parsing
...
Now we doesn't fail when no HOME env var is present.
14 years ago
Hidden Z
0819e15db8
py-i2phosts-*: do imports from system-wide pyi2phosts
14 years ago
Hidden Z
297c9e9b55
py-i2phosts-injector: replace print() with sys.stdout.write()
14 years ago
Hidden Z
4755c0d35b
py-i2phosts-injector: replace sys.stderr with sys.stdout where needed
...
Writing such kind of messages to stderr was a mistake.
14 years ago
Hidden Z
1e4933624a
py-i2phosts-injector: use config value for "approved"
14 years ago
Hidden Z
a3a4d1ef51
py-i2phosts-injector: use config options in django setup
14 years ago
Hidden Z
596981b854
py-i2phosts-injector: add config file support
14 years ago
Hidden Z
d48b1dfcd8
py-i2phosts-injector: add comment
14 years ago
Hidden Z
2ab6566db2
py-i2phosts-injector: add argument for auto-approving hosts
14 years ago
Hidden Z
376c9bb80b
py-i2phosts-injector: by default add hosts as NOT activated
14 years ago
Hidden Z
6a844c42f0
py-i2phosts-injector: check for key conflicts when adding
...
Now we can see when key for some host are differs with our key
14 years ago
Hidden Z
584d113a06
py-i2phosts-injector: add extra newline for error message
...
This improves output readability significantly.
14 years ago
Hidden Z
28a04f9240
py-i2phosts-injector: add -q/--quiet option
...
With this option program should print only errors
14 years ago
Hidden Z
af828254aa
Rename builder and injector
...
renamed: builder -> py-i2phosts-builder
renamed: injector -> py-i2phosts-injector
14 years ago
Hidden Z
d0f157450b
injector: add -s/--supress option
...
With this option messages about already existed hostnames will be
supressed.
14 years ago
Hidden Z
9b88d61af5
injector: add command-line option for description
14 years ago
Hidden Z
803bbef6c6
injector: output errors to stderr
14 years ago
Hidden Z
5e8b354f9f
injector: ignore comments and empty lines
14 years ago
Hidden Z
2858ba6084
injector: strip trailing '\n' from lines
...
We don't need a corrupted hashes in db :)
14 years ago
Hidden Z
798d5cb2a7
injector: ignore lines without '=' separator
14 years ago
Hidden Z
f6f2d25426
injector: add hostname/key validation using previously created library
14 years ago
Hidden Z
95f38f5ac0
injector: add new hosts with external=True
14 years ago
Hidden Z
e3ec6c34bc
Redefine DJANGO_PROJECT_PATH in scripts
...
Assume that wep-part are located in <scriptdir>/web. Later we should use
a config variable for it. In production environment scripts will be
located in /usr/bin/
14 years ago
Hidden Z
fd210c6fe3
injector: add command-line arguments parsing
...
And first option is: path to hosts.txt for parse
14 years ago
Hidden Z
40a708bb60
injector: permit adding hostnames with non-unique b64 hashes
14 years ago
Hidden Z
b71f2fc511
injector: use more efficient exists() method
14 years ago
Hidden Z
bc33f75238
Add injector program
...
This is an initial implementation of injector service needed for parse
external hosts.txt and adds hosts from them into our database.
14 years ago