Browse Source

tb_pepmda_serve.sh: convenience script starting serve.py and thunderbird with ENIGMAIL_PEP_DOWNLOAD_URL

master
arian.sanusi@pep.foundation Arian Sanusi (p≡p Foundation) 2 years ago
parent
commit
d6087cbeaa
No known key found for this signature in database GPG Key ID: 49B08FCFF6BC3B2
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      tb_pepmda_serve.sh

+ 9
- 0
tb_pepmda_serve.sh View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -euo pipefail

python3 `dirname $0`/serve.py ${1-} ${2-} &
serverPID=$!
export ENIGMAIL_PEP_DOWNLOAD_URL="http://localhost:${2-8000}/"
echo "$ENIGMAIL_PEP_DOWNLOAD_URL"
thunderbird
trap "kill $serverPID" EXIT

Loading…
Cancel
Save