Merge branch 'master' of ssh://git.onelab.eu/git/infrastructure
[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 the gpg encrypted version of the export file 
20 plcsh ./export-omf.py | gpg -r CERTH -e --output EXPORT.nitlab.gpg
21
22 # publish under /var/www/html/download/EXPORT.nitlab
23 cp EXPORT.nitlab.gpg /var/www/html/download/EXPORT.nitlab.gpg