|
56 | 56 | cp portal-@ [email protected] /etc/pki/tls/private
|
57 | 57 |
|
58 | 58 |
|
59 |
| -# Copy "default site" web files into place |
60 |
| -if [ -d common/www/localhost ]; then |
61 |
| - cp -r common/www/localhost /var/www/localhost |
62 |
| -fi |
63 |
| - |
64 |
| -#---------------------------------------------------------------------- |
65 |
| -# Configure Shibboleth SP |
66 |
| -#---------------------------------------------------------------------- |
67 |
| - |
68 |
| -SHIB_SP_DIR=/tmp/shib/sp |
69 |
| - |
70 |
| -#----- |
71 |
| -# First, copy the common shibboleth config |
72 |
| -#----- |
73 |
| -if [ -d $SHIB_SP_DIR/common ]; then |
74 |
| - if [ -d $SHIB_SP_DIR/common/shibboleth ]; then |
75 |
| - mkdir -p /etc/shibboleth |
76 |
| - cp $SHIB_SP_DIR/common/shibboleth/* /etc/shibboleth |
77 |
| - fi |
78 |
| -fi |
79 |
| - |
80 |
| -#----- |
81 |
| -# Next, copy the host-specific shibboleth config files |
82 |
| -#----- |
83 |
| -GENI_APACHE_CONFIG_DIR=/usr/share/geni-ch/www |
84 |
| -mkdir -p $GENI_APACHE_CONFIG_DIR |
85 |
| -for d in $SHIB_SP_DIR/common/www/*; do |
86 |
| - echo "Copying ${d} to $GENI_APACHE_CONFIG_DIR" |
87 |
| - /bin/cp -R ${d} $GENI_APACHE_CONFIG_DIR |
88 |
| -done |
89 | 59 |
|
90 | 60 | # Restart the Shib Daemon and apache
|
91 | 61 | service ntpd restart
|
92 | 62 | service shibd restart
|
93 | 63 | service httpd restart
|
94 | 64 |
|
95 |
| -echo 'Check for HOST specific files - portal-ssl an' |
96 |
| -echo "Edit $HOST ch-ssl and portal-ssl files to point to correct addresses and names" |
97 |
| -echo 'Edit /etc/shibboleth/shibboleth2.xml' |
98 |
| -echo 'Then restart services' |
99 |
| -echo 'service ntpd restart' |
100 |
| -echo 'service shibd restart' |
101 |
| -echo 'service httpd restart' |
0 commit comments