permission on get_address
This commit is contained in:
parent
97d6524c90
commit
89e797a6e8
|
@ -238,9 +238,6 @@ function install_bdsmail {
|
||||||
echo '' >> /etc/systemd/system/bdsmail.service
|
echo '' >> /etc/systemd/system/bdsmail.service
|
||||||
echo '[Install]' >> /etc/systemd/system/bdsmail.service
|
echo '[Install]' >> /etc/systemd/system/bdsmail.service
|
||||||
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/bdsmail.service
|
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/bdsmail.service
|
||||||
systemctl enable bdsmail
|
|
||||||
chown -R i2psvc:i2psvc /etc/bdsmail
|
|
||||||
systemctl start bdsmail
|
|
||||||
|
|
||||||
echo '#!/usr/bin/env python2' > /etc/bdsmail/get_address
|
echo '#!/usr/bin/env python2' > /etc/bdsmail/get_address
|
||||||
echo 'import base64, hashlib, sys' >> /etc/bdsmail/get_address
|
echo 'import base64, hashlib, sys' >> /etc/bdsmail/get_address
|
||||||
|
@ -248,6 +245,10 @@ function install_bdsmail {
|
||||||
echo " print(base64.b32encode(hashlib.sha256(base64.b64decode(f.read(516), '-~')).digest()).strip('=')+\".b32.i2p\")" >> /etc/bdsmail/get_address
|
echo " print(base64.b32encode(hashlib.sha256(base64.b64decode(f.read(516), '-~')).digest()).strip('=')+\".b32.i2p\")" >> /etc/bdsmail/get_address
|
||||||
chmod +x /etc/bdsmail/get_address
|
chmod +x /etc/bdsmail/get_address
|
||||||
|
|
||||||
|
chown -R i2psvc:i2psvc /etc/bdsmail
|
||||||
|
systemctl enable bdsmail
|
||||||
|
systemctl start bdsmail
|
||||||
|
|
||||||
echo '#!/bin/bash' > /usr/bin/bdsmail_domain
|
echo '#!/bin/bash' > /usr/bin/bdsmail_domain
|
||||||
echo 'cd /etc/bdsmail' >> /usr/bin/bdsmail_domain
|
echo 'cd /etc/bdsmail' >> /usr/bin/bdsmail_domain
|
||||||
echo 'python2 get_address bdsmail-privkey.dat' >> /usr/bin/bdsmail_domain
|
echo 'python2 get_address bdsmail-privkey.dat' >> /usr/bin/bdsmail_domain
|
||||||
|
|
Loading…
Reference in New Issue