From 70dd9f3fc8e6455ccbbf7bf6a72ead06e176c9e3 Mon Sep 17 00:00:00 2001 From: John Gasper Date: Wed, 18 Apr 2018 10:37:50 -0700 Subject: [PATCH] making the lib and conf copies recursive --- container_files/usr-local-bin/library.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/container_files/usr-local-bin/library.sh b/container_files/usr-local-bin/library.sh index ea7f4141..eb29be8b 100644 --- a/container_files/usr-local-bin/library.sh +++ b/container_files/usr-local-bin/library.sh @@ -50,10 +50,10 @@ prepDaemon() { linkGrouperSecrets $dest/conf if [ -d "/opt/grouper/conf" ]; then - cp /opt/grouper/conf/* $dest/conf/ + cp -r /opt/grouper/conf/* $dest/conf/ fi if [ -d "/opt/grouper/lib" ]; then - cp /opt/grouper/lib/* $dest/lib/ + cp -r /opt/grouper/lib/* $dest/lib/ fi } @@ -62,10 +62,10 @@ prepSCIM() { linkGrouperSecrets $dest/classes if [ -d "/opt/grouper/conf" ]; then - cp /opt/grouper/conf/* $dest/classes/ + cp -r /opt/grouper/conf/* $dest/classes/ fi if [ -d "/opt/grouper/lib" ]; then - cp /opt/grouper/lib/* $dest/lib/ + cp -r /opt/grouper/lib/* $dest/lib/ fi cp /opt/tier-support/grouper-ws-scim.xml /opt/tomee/conf/Catalina/localhost/ @@ -76,10 +76,10 @@ prepUI() { linkGrouperSecrets $dest/classes if [ -d "/opt/grouper/conf" ]; then - cp /opt/grouper/conf/* $dest/classes/ + cp -r /opt/grouper/conf/* $dest/classes/ fi if [ -d "/opt/grouper/lib" ]; then - cp /opt/grouper/lib/* $dest/lib/ + cp -r /opt/grouper/lib/* $dest/lib/ fi cp /opt/tier-support/grouper.xml /opt/tomcat/conf/Catalina/localhost/ @@ -90,10 +90,10 @@ prepWS() { linkGrouperSecrets $dest/classes if [ -d "/opt/grouper/conf" ]; then - cp /opt/grouper/conf/* $dest/classes/ + cp -r /opt/grouper/conf/* $dest/classes/ fi if [ -d "/opt/grouper/lib" ]; then - cp /opt/grouper/lib/* $dest/lib/ + cp -r /opt/grouper/lib/* $dest/lib/ fi cp /opt/tier-support/grouper-ws.xml /opt/tomcat/conf/Catalina/localhost/