File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/main/resources/images/server Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ change_passwords () {
88
99 if [ x" ${AS_ADMIN_PASSWORD} " != x ]; then
1010 echo -e " AS_ADMIN_PASSWORD=admin\nAS_ADMIN_NEWPASSWORD=${AS_ADMIN_PASSWORD} " >> $PWD_FILE
11+ cat ${PWD_FILE}
1112 COMMAND=" change-admin-password --passwordfile=${PWD_FILE} "
1213 echo " AS_ADMIN_PASSWORD=${AS_ADMIN_PASSWORD} " > " ${AS_PASSWORD_FILE} "
1314 fi
@@ -19,7 +20,9 @@ change-master-password --passwordfile=${PWD_FILE} --savemasterpassword=true"
1920 fi
2021
2122 if [ x" ${COMMAND} " != x ]; then
22- printf " ${COMMAND} " | asadmin --interactive=false
23+ printf " ${COMMAND} " > /tmp/commands
24+ asadmin multimode --interactive=false --file /tmp/commands
25+ rm -rf /tmp/commands
2326 fi
2427
2528 rm -rf ${PWD_FILE}
Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ change-master-password --passwordfile=${PWD_FILE} --savemasterpassword=true"
1919 fi
2020
2121 if [ x" ${COMMAND} " != x ]; then
22- printf " ${COMMAND} " | asadmin --interactive=false
22+ printf " ${COMMAND} " > /tmp/commands
23+ asadmin multimode --interactive=false --file /tmp/commands
24+ rm -rf /tmp/commands
2325 fi
2426
2527 rm -rf ${PWD_FILE}
You can’t perform that action at this time.
0 commit comments