Move keygen.sh into /usr/sbin and clean up /etc/shibboleth
[shibboleth/sp.git] / configs / keygen.sh
index 9183e10..bb89e80 100755 (executable)
@@ -1,5 +1,9 @@
 #! /bin/sh
 
+# Added for Debian.  The upstream version is installed in /etc/shibboleth and
+# for Debian we wanted to move it to /usr/bin, so change directories so that
+# it puts files in the correct location.
+cd /etc/shibboleth
 while getopts h:u:g:o:e:y:bf c
      do
          case $c in
@@ -32,6 +36,7 @@ if  [ -s $OUT/sp-key.pem -o -s $OUT/sp-cert.pem ] ; then
     exit 0
 fi
 
+# --fqdn flag added for Debian to generate better names for certificates.
 if [ -z "$FQDN" ] ; then
     FQDN=`hostname --fqdn`
 fi