Fix backslashes in SHIBSP_PREFIX variable by manually creating it during the script...
[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     attribute-map.xml \
19     attribute-policy.xml \
20     example-metadata.xml \
21     shibboleth2.xml"
22
23 for f in $CONFIGFILES; do
24     if test ! -f $f; then
25         cp $f.dist $f
26     fi;
27     done
28
29 PATH=$PATH:/usr/local/bin
30 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
31 export PATH LD_LIBRARY_PATH
32 sh ./keygen.sh -b
33
34 exit 0