Compare commits
2 Commits
workaround
...
master
| Author | SHA1 | Date |
|---|---|---|
|
|
c4110a52a0 | |
|
|
61bc2ebfb7 |
|
|
@ -1,3 +1,2 @@
|
||||||
initdbfilesync.tar
|
initdbfilesync.tar
|
||||||
dbfilesync_image.tar
|
|
||||||
*.tar
|
*.tar
|
||||||
|
|
@ -5,15 +5,12 @@ WORKDIR /app
|
||||||
COPY utilities /app/utilities/
|
COPY utilities /app/utilities/
|
||||||
COPY entrypoint.sh /app/docker-entrypoint.sh
|
COPY entrypoint.sh /app/docker-entrypoint.sh
|
||||||
COPY setenv_tmp /app/setenv_tmp
|
COPY setenv_tmp /app/setenv_tmp
|
||||||
COPY logout_tmp.html /app/logout_tmp.html
|
|
||||||
COPY IdpMessageReceiverServlet.class /app/utilities/IdpMessageReceiverServlet.class
|
|
||||||
|
|
||||||
RUN apk add --no-cache bash
|
RUN apk add --no-cache bash
|
||||||
RUN ["chmod", "+x", "/app/docker-entrypoint.sh"]
|
RUN ["chmod", "+x", "/app/docker-entrypoint.sh"]
|
||||||
RUN ["chmod", "+x", "/app/utilities/DBFileSync.sh"]
|
RUN ["chmod", "+x", "/app/utilities/DBFileSync.sh"]
|
||||||
RUN ["chmod", "+x", "/app/utilities/DBFileSync.jar"]
|
RUN ["chmod", "+x", "/app/utilities/DBFileSync.jar"]
|
||||||
RUN ["chmod", "+x", "/app/utilities/DBFileSyncTimer.txt"]
|
RUN ["chmod", "+x", "/app/utilities/DBFileSyncTimer.txt"]
|
||||||
RUN ["chmod", "+x", "/app/utilities/IdpMessageReceiverServlet.class"]
|
|
||||||
|
|
||||||
|
|
||||||
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -34,15 +34,5 @@ function error () {
|
||||||
checkenvvars
|
checkenvvars
|
||||||
cp -r utilities /dbfilesync/
|
cp -r utilities /dbfilesync/
|
||||||
sed -e 's@SMARTIT_DB_TYPE_REPL@'"${SMARTIT_DB_TYPE/@/\\@}"'@' -e 's@SMARTIT_DB_HOST_NAME_REPL@'"${SMARTIT_DB_HOST_NAME/@/\\@}"'@' -e 's@SMARTIT_DB_PORT_REPL@'"${SMARTIT_DB_PORT/@/\\@}"'@' -e 's@SMARTIT_DB_NAME_REPL@'"${SMARTIT_DB_NAME/@/\\@}"'@' -e 's@SMARTIT_DB_SYSTEM_USER_REPL@'"${SMARTIT_DB_SYSTEM_USER/@/\\@}"'@' -e 's@SMARTIT_DB_SYSTEM_PASSWORD_REPL@'"${SMARTIT_DB_SYSTEM_PASSWORD/@/\\@}"'@' -e 's@DBFILESYNC_PRODUCT_REPL@'"${DBFILESYNC_PRODUCT/@/\\@}"'@' setenv_tmp > /dbfilesync/utilities/setenv
|
sed -e 's@SMARTIT_DB_TYPE_REPL@'"${SMARTIT_DB_TYPE/@/\\@}"'@' -e 's@SMARTIT_DB_HOST_NAME_REPL@'"${SMARTIT_DB_HOST_NAME/@/\\@}"'@' -e 's@SMARTIT_DB_PORT_REPL@'"${SMARTIT_DB_PORT/@/\\@}"'@' -e 's@SMARTIT_DB_NAME_REPL@'"${SMARTIT_DB_NAME/@/\\@}"'@' -e 's@SMARTIT_DB_SYSTEM_USER_REPL@'"${SMARTIT_DB_SYSTEM_USER/@/\\@}"'@' -e 's@SMARTIT_DB_SYSTEM_PASSWORD_REPL@'"${SMARTIT_DB_SYSTEM_PASSWORD/@/\\@}"'@' -e 's@DBFILESYNC_PRODUCT_REPL@'"${DBFILESYNC_PRODUCT/@/\\@}"'@' setenv_tmp > /dbfilesync/utilities/setenv
|
||||||
sed -e 's@{rsso_lo_dwp_agentid_repl}@'"${rsso_lo_dwp_agentid/@/\\@}"'@' \
|
|
||||||
-e 's@{rsso_lo_url_repl}@'"${rsso_lo_url/@/\\@}"'@' \
|
|
||||||
-e 's@{rsso_lo_tenant_repl}@'"${rsso_lo_tenant/@/\\@}"'@' \
|
|
||||||
-e 's@{rsso_lo_dwp_url_repl}@'"${rsso_lo_dwp_url/@/\\@}"'@' \
|
|
||||||
-e 's@{rsso_lo_arsys_agentid_repl}@'"${rsso_lo_arsys_agentid/@/\\@}"'@' \
|
|
||||||
-e 's@{rsso_lo_smit_agentid_repl}@'"${rsso_lo_smit_agentid/@/\\@}"'@' \
|
|
||||||
-e 's@{rsso_lo_arsys_url_repl}@'"${rsso_lo_arsys_url/@/\\@}"'@' \
|
|
||||||
-e 's@{rsso_lo_smit_url_repl}@'"${rsso_lo_smit_url/@/\\@}"'@' \
|
|
||||||
-e 's@{rsso_lo_aim_agentid_repl}@'"${rsso_lo_aim_agentid/@/\\@}"'@' \
|
|
||||||
-e 's@{rsso_lo_aim_url_repl}@'"${rsso_lo_aim_url/@/\\@}"'@' \
|
|
||||||
logout_tmp.html > /dbfilesync/utilities/logout.jsp
|
|
||||||
touch /dbfilesync/utilities/DBFileSyncNew.log
|
touch /dbfilesync/utilities/DBFileSyncNew.log
|
||||||
|
touch /tmp/post_dbfilesync.sh
|
||||||
|
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
<%@ page import="java.io.*,java.util.*" %>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Page Redirection</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<center>
|
|
||||||
<h1>Page Redirection</h1>
|
|
||||||
</center>
|
|
||||||
<%
|
|
||||||
String agent_id = (String) request.getParameter("agent-id");
|
|
||||||
String redirect_url = "";
|
|
||||||
if(agent_id.compareTo("{rsso_lo_dwp_agentid_repl}")==0)
|
|
||||||
redirect_url = "{rsso_lo_url_repl}start?bypass-auth=true&tenant={rsso_lo_tenant_repl}&goto={rsso_lo_dwp_url_repl}";
|
|
||||||
else if(agent_id.compareTo("{rsso_lo_arsys_agentid_repl}")==0)
|
|
||||||
redirect_url = "{rsso_lo_url_repl}start?bypass-auth=true&tenant={rsso_lo_tenant_repl}&goto={rsso_lo_arsys_url_repl}";
|
|
||||||
else if(agent_id.compareTo("{rsso_lo_smit_agentid_repl}")==0)
|
|
||||||
redirect_url = "{rsso_lo_url_repl}start?bypass-auth=true&tenant={rsso_lo_tenant_repl}&goto={rsso_lo_smit_url_repl}";
|
|
||||||
else if(agent_id.compareTo("{rsso_lo_aim_agentid_repl}")==0)
|
|
||||||
redirect_url = "{rsso_lo_url_repl}start?bypass-auth=true&tenant={rsso_lo_tenant_repl}&goto={rsso_lo_aim_url_repl}";
|
|
||||||
else if(agent_id.compareTo("launchpad_agent")==0)
|
|
||||||
redirect_url = "{rsso_lo_url_repl}start?bypass-auth=true&tenant={rsso_lo_tenant_repl}&goto={rsso_lo_arsys_url_repl}";
|
|
||||||
response.setStatus(response.SC_MOVED_TEMPORARILY);
|
|
||||||
response.setHeader("Location", redirect_url);
|
|
||||||
%>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@ -22,54 +22,3 @@ closing db connectionclosing db connection
|
||||||
closing db connection
|
closing db connection
|
||||||
closing db connection
|
closing db connection
|
||||||
closing db connection
|
closing db connection
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
closing db connection
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||||
source $SCRIPTPATH/setenv
|
source $SCRIPTPATH/setenv
|
||||||
cp -f $SCRIPTPATH/logout.jsp /usr/local/tomcat/webapps/rsso/logout.jsp
|
|
||||||
cp -f $SCRIPTPATH/logout.jsp /usr/local/tomcat/webapps/rsso/admin/logedout.jsp
|
|
||||||
cp -f $SCRIPTPATH/IdpMessageReceiverServlet.class /usr/local/tomcat/webapps/rsso/WEB-INF/classes/com/bmc/rsso/servlet/saml/IdpMessageReceiverServlet.class
|
|
||||||
|
|
||||||
echo "$SCRIPTPATH"
|
echo "$SCRIPTPATH"
|
||||||
DB_TYPE=$SMARTIT_DB_TYPE
|
DB_TYPE=$SMARTIT_DB_TYPE
|
||||||
|
|
@ -12,13 +9,12 @@ DB_PORT=$SMARTIT_DB_PORT
|
||||||
DB_NAME=$SMARTIT_DB_NAME
|
DB_NAME=$SMARTIT_DB_NAME
|
||||||
DB_USER=$SMARTIT_DB_SYSTEM_USER
|
DB_USER=$SMARTIT_DB_SYSTEM_USER
|
||||||
DB_PWD=$SMARTIT_DB_SYSTEM_PASSWORD
|
DB_PWD=$SMARTIT_DB_SYSTEM_PASSWORD
|
||||||
#DB_PWD="bW1fe56tg3V0umDDG6ne"
|
|
||||||
CONFIG_PATH=/dbfilesync/utilities/DBFileSyncTimer.txt
|
CONFIG_PATH=/dbfilesync/utilities/DBFileSyncTimer.txt
|
||||||
PRODUCT_NAME=$DBFILESYNC_PRODUCT
|
PRODUCT_NAME=$DBFILESYNC_PRODUCT
|
||||||
TRIGGER_INTERVAL=$DBFILESYNCH_UTIL_INTERVAL
|
TRIGGER_INTERVAL=$DBFILESYNCH_UTIL_INTERVAL
|
||||||
ENCRYPT_OUTPUT="$($JAVA_HOME/bin/java -cp $SCRIPTPATH/DBFileSync.jar com.bmc.dbfilesync.EncryptionUtils -pwd $DB_PWD)"
|
ENCRYPT_OUTPUT="$($JAVA_HOME/bin/java -cp $SCRIPTPATH/DBFileSync.jar com.bmc.dbfilesync.EncryptionUtils -pwd $DB_PWD)"
|
||||||
#echo "${DB_PWD[0]}"
|
#echo "${DB_PWD[0]}"
|
||||||
ENCRYPTED_PWD=${ENCRYPT_OUTPUT[0]}
|
ENCRYPTED_PWD=${ENCRYPT_OUTPUT}
|
||||||
ALWAYS_ON=No
|
ALWAYS_ON=No
|
||||||
if [ -z "$TRIGGER_INTERVAL" ]
|
if [ -z "$TRIGGER_INTERVAL" ]
|
||||||
then
|
then
|
||||||
|
|
@ -40,3 +36,9 @@ if [ ! STATUS ];then
|
||||||
echo 'Failed to run rebranding tool'
|
echo 'Failed to run rebranding tool'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# sleep 20s
|
||||||
|
# #run post DB Filesync execution script (to attach agent for example)
|
||||||
|
# ls /tmp/
|
||||||
|
# chmod 755 /tmp/post_dbfilesync.sh
|
||||||
|
# sh /tmp/post_dbfilesync.sh
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
|
|
||||||
MAX_DOWNLOAD_TIMESTAMP=
|
MAX_DOWNLOAD_TIMESTAMP=
|
||||||
Loading…
Reference in New Issue