Browse Source

permission on get_address

Bob Mottram 7 years ago
parent
commit
89e797a6e8
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      src/freedombone-app-bdsmail

+ 4
- 3
src/freedombone-app-bdsmail View File

@@ -238,9 +238,6 @@ function install_bdsmail {
238 238
     echo '' >> /etc/systemd/system/bdsmail.service
239 239
     echo '[Install]' >> /etc/systemd/system/bdsmail.service
240 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 242
     echo '#!/usr/bin/env python2' > /etc/bdsmail/get_address
246 243
     echo 'import base64, hashlib, sys' >> /etc/bdsmail/get_address
@@ -248,6 +245,10 @@ function install_bdsmail {
248 245
     echo "    print(base64.b32encode(hashlib.sha256(base64.b64decode(f.read(516), '-~')).digest()).strip('=')+\".b32.i2p\")" >> /etc/bdsmail/get_address
249 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 252
     echo '#!/bin/bash' > /usr/bin/bdsmail_domain
252 253
     echo 'cd /etc/bdsmail' >> /usr/bin/bdsmail_domain
253 254
     echo 'python2 get_address bdsmail-privkey.dat' >> /usr/bin/bdsmail_domain