-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAUTO_SCRIPTS_INSTALL.sh
40 lines (26 loc) · 1.15 KB
/
AUTO_SCRIPTS_INSTALL.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
printf '***********please initialize the RUN FILE Env var before following steps *********** \n'
printf '*********** please copy all install files into $HOME/eyEBSScriptHome *********** \n'
if [ ! -d "$HOME/eyEBSScriptHome" ]; then
mkdir $HOME/eyEBSScriptHome
fi
if grep -Fxq "export ey_EBSScript_HOME=$HOME/eyEBSScriptHome" $HOME/.profile
then
# code if found
echo ""
else
# code if not found
echo export ey_EBSScript_HOME=$HOME/eyEBSScriptHome >> $HOME/.profile
fi
printf '***********please Input the password of APPS*********** \n'
read APPSPWD
printf '***********please Input the password of Weblogic*********** \n'
read WEBLOGICPWD
printf '***********install crypto package for APPS*********** \n'
sqlplus apps/$APPSPWD @install_crypto.sql
printf "***********compiling JAVA Program for Admin Password crypto*********** \n"
javac -d $JAVA_TOP PWDUtil.java
printf "*********** create encryption_password.txt*********** \n"
echo "" > $ey_EBSScript_HOME/encryption_password.txt
printf "*********** initialize encryption_password.txt*********** \n"
java xxgl.scripts.PWDUtil ENCRYPT APPS $APPSPWD
java xxgl.scripts.PWDUtil ENCRYPT WEBLOGIC $WEBLOGICPWD