Skip to content

Commit

Permalink
copy files based on flags
Browse files Browse the repository at this point in the history
  • Loading branch information
chubing authored Mar 23, 2020
1 parent 874e560 commit 75bf9d6
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion container_files/usr-local-bin/library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ prepConf() {
prepWSConf
}

# construct the supervisord file based on FLAGS passed in or what was in CMD
if [ "$RUN_APACHE" = "true" ]
then
cat /opt/tier-support/supervisord-httpd.conf >> /opt/tier-support/supervisord-base.conf
Expand All @@ -185,6 +186,22 @@ if [ "$RUN_SHIB_SP" = "true" ]
cat /opt/tier-support/supervisord-shibsp.conf >> /opt/tier-support/supervisord-base.conf
fi


cat /opt/tier-support/supervisord-base.conf > /opt/tier-support/supervisord.conf


# copy files to their appropriate locations based on passed in flags
if [ "GROUPER_WS" = "true" ]
then
cp -r $dest/libWs/* $dest/lib/
fi

if [ "GROUPER_SCIM" = "true" ]
then
cp -r $dest/libScim/* $dest/lib/
fi

if [ "GROUPER_UI" = "true" ] || [ "GROUPER_DAEMON" = "true" ]
then
cp -r $dest/libUiAndDaemon/* $dest/lib/
fi

0 comments on commit 75bf9d6

Please sign in to comment.