Skip to content

Commit

Permalink
Remove shib conf when shib is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
xcompass committed Nov 27, 2024
1 parent 489b438 commit ff76b80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '2'
services:
db:
image: mariadb:10.4
Expand Down Expand Up @@ -98,4 +97,4 @@ services:
- SHIB_ODBC_PASSWORD=password
- SHIBD_ATTRIBUTE_MAP_URL=
volumes:
- ./.data/cert:/etc/shibboleth/cert:rw
- ./.data/cert:/etc/shibboleth/cert:rw
1 change: 1 addition & 0 deletions docker-entrypoint.d/shib
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -e
if [[ -z "${SHIBBOLETH_SP_ENTITY_ID}" ]]; then
# disable mod_shib
a2dismod shib
rm /etc/apache2/conf-enabled/shib.conf /etc/apache2/conf-enabled/moodle-shib.conf
else
export SHIBD_SERVICE_IP=`getent hosts ${SHIBD_SERVICE_NAME} | awk '{ print $1 }'`

Expand Down

0 comments on commit ff76b80

Please sign in to comment.