more portably GSS library detection
[shibboleth/sp.git] / postinstall
1 #!/bin/sh
2
3 cd /opt/shibboleth-sp/etc/shibboleth
4
5 CONFIGFILES=" \
6     native.logger \
7     shibd.logger \
8     syslog.logger \
9     console.logger \
10     accessError.html \
11     sessionError.html \
12     metadataError.html \
13     sslError.html \
14     bindingTemplate.html \
15     discoveryTemplate.html \
16     localLogout.html \
17     globalLogout.html \
18     partialLogout.html \
19     attribute-map.xml \
20     attribute-policy.xml \
21     example-metadata.xml \
22     shibboleth2.xml"
23
24 for f in $CONFIGFILES; do
25     if test ! -f $f; then
26         cp $f.dist $f
27     fi;
28     done
29
30 PATH=$PATH:/usr/local/bin
31 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
32 export PATH LD_LIBRARY_PATH
33 sh ./keygen.sh -b
34
35 exit 0