Skip to content

Commit

Permalink
Update library.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
chubing authored Feb 25, 2020
1 parent dcaece9 commit 71ba051
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions container_files/usr-local-bin/library.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

local dest=/opt/grouper/grouperWebapp/WEB-INF/
dest=/opt/grouper/grouperWebapp/WEB-INF/


setupPipe() {
Expand Down Expand Up @@ -34,7 +34,7 @@ setupShibdLogPipe() {

setupTomcatLogPipe() {
setupPipe /tmp/logtomcat
(cat <> /tmp/logtomcat | awk -v ENV="$ENV" -v UT="$USERTOKEN" '{printf "tomcat;console;%s;%s;%s\n", ENV, UT, $0; fflush()}' &>/tmp/logpipe) &
(cat <> /tmp/logtomcat | awk -v ENV="$ENV" -v UT="$USERTOKEN" '{printf "tomee;console;%s;%s;%s\n", ENV, UT, $0; fflush()}' &>/tmp/logpipe) &
}

setupSupervisordLogPipe() {
Expand All @@ -48,7 +48,7 @@ linkGrouperSecrets() {
local file=$(echo $label_file| cut -d'_' -f 2)

if [[ $label_file == grouper_* ]]; then
ln -sf /run/secrets/$label_file $1/$file
ln -sf /run/secrets/$label_file $dest/classes/$file
elif [[ $label_file == shib_* ]]; then
ln -sf /run/secrets/$label_file /etc/shibboleth/$file
elif [[ $label_file == httpd_* ]]; then
Expand Down

0 comments on commit 71ba051

Please sign in to comment.