more details on the process
[infrastructure.git] / omf / export-omf.sh
1 #!/bin/bash
2 # to be run on {www,boot}.planet-lab.eu where the CERTH key was imported
3 #
4 # (*) used NITOS indications to locate armored key
5 # http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4646985724FAFE07
6 #
7 # (*) stored that in /etc/planetlab/Nitlab.key
8 #
9 # (*) gpg --import /etc/planetlab/Nitlab.key
10 #
11 # (*) signed the snipped version and published it to NITOS
12 # upon reception of their acknowledgement we can sign the key
13 # (which hopefully will remove the need for typing 'y' hehe)
14
15 DIRNAME=$(dirname $0)
16
17 cd $DIRNAME
18
19 # refresh EXPORT and EXPORT.snip with the python script
20
21 plcsh ./export-omf.py -- -n EXPORT.snip
22 plcsh ./export-omf.py -- EXPORT
23
24 yes | gpg -r CERTH -e < EXPORT.snip > EXPORT.snip.nitlab
25 yes | gpg -r CERTH -e < EXPORT > EXPORT.nitlab
26
27 # publish under /var/www/html/download/EXPORT.nitlab
28 # or whatever the name is