DOCKER: Install passport-cas2 if CAS selected

This commit is contained in:
joker-x 2020-09-07 17:41:38 +02:00
parent 99e3f12c24
commit b4d7c1bfcf

View file

@ -170,4 +170,9 @@ if [ "$WITH_ZONE_MTA" = "true" ]; then
fi fi
cd server cd server
# Install passport-cas2 node package if CAS selected
if [ "$WITH_CAS" = "true" ]; then
echo 'Info: Installing passport-cas2'
NODE_ENV=production npm install passport-cas2
fi
NODE_ENV=production node index.js NODE_ENV=production node index.js