Fix backslashes in SHIBSP_PREFIX variable by manually creating it during the script...
[shibboleth/sp.git] / postinstall
index 0dea084..790f33f 100644 (file)
@@ -1,30 +1,34 @@
-#!/bin/sh\r
-\r
-cd /opt/shibboleth-sp/etc/shibboleth\r
-\r
-CONFIGFILES=" \\r
-    native.logger \\r
-    shibd.logger \\r
-    syslog.logger \\r
-    console.logger \\r
-    accessError.html \\r
-    sessionError.html \\r
-    metadataError.html \\r
-    sslError.html \\r
-    bindingTemplate.html \\r
-    localLogout.html \\r
-    globalLogout.html \\r
-    sp-example.key \\r
-    sp-example.crt \\r
-    attribute-map.xml \\r
-    attribute-policy.xml \\r
-    shibboleth2.xml \\r
-    example-metadata.xml"\r
-\r
-for f in $CONFIGFILES; do\r
-    if test ! -f $f; then\r
-        cp $f.dist $f\r
-    fi;\r
-    done\r
-\r
-exit 0\r
+#!/bin/sh
+
+cd /opt/shibboleth-sp/etc/shibboleth
+
+CONFIGFILES=" \
+    native.logger \
+    shibd.logger \
+    syslog.logger \
+    console.logger \
+    accessError.html \
+    sessionError.html \
+    metadataError.html \
+    sslError.html \
+    bindingTemplate.html \
+    discoveryTemplate.html \
+    localLogout.html \
+    globalLogout.html \
+    attribute-map.xml \
+    attribute-policy.xml \
+    example-metadata.xml \
+    shibboleth2.xml"
+
+for f in $CONFIGFILES; do
+    if test ! -f $f; then
+        cp $f.dist $f
+    fi;
+    done
+
+PATH=$PATH:/usr/local/bin
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
+export PATH LD_LIBRARY_PATH
+sh ./keygen.sh -b
+
+exit 0