|
|
|
|
238
|
echo '' >> /etc/systemd/system/bdsmail.service
|
238
|
echo '' >> /etc/systemd/system/bdsmail.service
|
239
|
echo '[Install]' >> /etc/systemd/system/bdsmail.service
|
239
|
echo '[Install]' >> /etc/systemd/system/bdsmail.service
|
240
|
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/bdsmail.service
|
240
|
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/bdsmail.service
|
241
|
- systemctl enable bdsmail
|
|
|
242
|
- chown -R i2psvc:i2psvc /etc/bdsmail
|
|
|
243
|
- systemctl start bdsmail
|
|
|
244
|
|
241
|
|
245
|
echo '#!/usr/bin/env python2' > /etc/bdsmail/get_address
|
242
|
echo '#!/usr/bin/env python2' > /etc/bdsmail/get_address
|
246
|
echo 'import base64, hashlib, sys' >> /etc/bdsmail/get_address
|
243
|
echo 'import base64, hashlib, sys' >> /etc/bdsmail/get_address
|
|
|
|
|
248
|
echo " print(base64.b32encode(hashlib.sha256(base64.b64decode(f.read(516), '-~')).digest()).strip('=')+\".b32.i2p\")" >> /etc/bdsmail/get_address
|
245
|
echo " print(base64.b32encode(hashlib.sha256(base64.b64decode(f.read(516), '-~')).digest()).strip('=')+\".b32.i2p\")" >> /etc/bdsmail/get_address
|
249
|
chmod +x /etc/bdsmail/get_address
|
246
|
chmod +x /etc/bdsmail/get_address
|
250
|
|
247
|
|
|
|
248
|
+ chown -R i2psvc:i2psvc /etc/bdsmail
|
|
|
249
|
+ systemctl enable bdsmail
|
|
|
250
|
+ systemctl start bdsmail
|
|
|
251
|
+
|
251
|
echo '#!/bin/bash' > /usr/bin/bdsmail_domain
|
252
|
echo '#!/bin/bash' > /usr/bin/bdsmail_domain
|
252
|
echo 'cd /etc/bdsmail' >> /usr/bin/bdsmail_domain
|
253
|
echo 'cd /etc/bdsmail' >> /usr/bin/bdsmail_domain
|
253
|
echo 'python2 get_address bdsmail-privkey.dat' >> /usr/bin/bdsmail_domain
|
254
|
echo 'python2 get_address bdsmail-privkey.dat' >> /usr/bin/bdsmail_domain
|