Skip to content

Commit

Permalink
remove some un-needed/redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
chubing authored Mar 24, 2020
1 parent 7a18c83 commit 8bc5ac0
Showing 1 changed file with 2 additions and 37 deletions.
39 changes: 2 additions & 37 deletions container_files/usr-local-bin/library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,6 @@ prepDaemon() {
finishPrep
}

prepDaemonConf() {
linkGrouperSecrets $dest

if [ -d "/opt/grouper/conf" ]; then
cp -r /opt/grouper/conf/* $dest/classes/
fi

}

prepSCIM() {
export GROUPER_SCIM=true
export RUN_APACHE=true
Expand All @@ -101,15 +92,6 @@ prepSCIM() {
finishPrep
}

prepSCIMConf() {
linkGrouperSecrets $dest/classes

if [ -d "/opt/grouper/conf" ]; then
cp -r /opt/grouper/conf/* $dest/classes/
fi

}

prepUI() {
export GROUPER_UI=true
export RUN_APACHE=true
Expand All @@ -127,15 +109,6 @@ prepUI() {
finishPrep
}

prepUIConf() {
linkGrouperSecrets $dest/classes

if [ -d "/opt/grouper/conf" ]; then
cp -r /opt/grouper/conf/* $dest/classes/
fi

}

prepWS() {

export GROUPER_WS=true
Expand All @@ -151,21 +124,13 @@ prepWS() {
finishPrep
}

prepWSConf() {

prepConf() {
linkGrouperSecrets $dest/classes

if [ -d "/opt/grouper/conf" ]; then
cp -r /opt/grouper/conf/* $dest/classes/
fi

}


prepConf() {
prepDaemonConf
prepSCIMConf
prepUIConf
prepWSConf
finishPrep
}

Expand Down

0 comments on commit 8bc5ac0

Please sign in to comment.