@@ -953,17 +953,19 @@ informix_14_10() {
953
953
# Give the container some time to start
954
954
OUTPUT=
955
955
n=0
956
- until [ " $n " -ge 10 ]
956
+ until [ " $n " -ge 5 ]
957
957
do
958
- OUTPUT=$( $CONTAINER_CLI logs informix 2>&1 )
958
+ OUTPUT=$( $PRIVILEGED_CLI $ CONTAINER_CLI logs informix 2>&1 )
959
959
if [[ $OUTPUT == * " Server Started" * ]]; then
960
+ sleep 15
961
+ $PRIVILEGED_CLI $CONTAINER_CLI exec informix bash -l -c " echo \" execute function task('create dbspace from storagepool', 'datadbs', '100 MB', '4');execute function task('create sbspace from storagepool', 'sbspace', '20 M', '0');create database dev in datadbs with log nlscase sensitive;\" > post_init.sql;dbaccess sysadmin post_init.sql"
960
962
break ;
961
963
fi
962
964
n=$(( n+ 1 ))
963
965
echo " Waiting for Informix to start..."
964
966
sleep 30
965
967
done
966
- if [ " $n " -ge 10 ]; then
968
+ if [ " $n " -ge 5 ]; then
967
969
echo " Informix failed to start and configure after 5 minutes"
968
970
else
969
971
echo " Informix successfully started"
@@ -977,17 +979,19 @@ informix_12_10() {
977
979
# Give the container some time to start
978
980
OUTPUT=
979
981
n=0
980
- until [ " $n " -ge 10 ]
982
+ until [ " $n " -ge 5 ]
981
983
do
982
- OUTPUT=$( $CONTAINER_CLI logs informix 2>&1 )
984
+ OUTPUT=$( $PRIVILEGED_CLI $ CONTAINER_CLI logs informix 2>&1 )
983
985
if [[ $OUTPUT == * " login Information" * ]]; then
986
+ sleep 15
987
+ $PRIVILEGED_CLI $CONTAINER_CLI exec informix bash -l -c " echo \" execute function task('create dbspace from storagepool', 'datadbs', '100 MB', '4');execute function task('create sbspace from storagepool', 'sbspace', '20 M', '0');create database dev in datadbs with log nlscase sensitive;\" > post_init.sql;dbaccess sysadmin post_init.sql"
984
988
break ;
985
989
fi
986
990
n=$(( n+ 1 ))
987
991
echo " Waiting for Informix to start..."
988
992
sleep 30
989
993
done
990
- if [ " $n " -ge 10 ]; then
994
+ if [ " $n " -ge 5 ]; then
991
995
echo " Informix failed to start and configure after 5 minutes"
992
996
else
993
997
echo " Informix successfully started"
@@ -1034,6 +1038,9 @@ if [ -z ${1} ]; then
1034
1038
echo -e " \tsybase"
1035
1039
echo -e " \ttidb"
1036
1040
echo -e " \ttidb_5_1"
1041
+ echo -e " \informix"
1042
+ echo -e " \informix_14_10"
1043
+ echo -e " \informix_12_10"
1037
1044
else
1038
1045
${1}
1039
1046
fi
0 commit comments