|
|
@@ -51,7 +51,7 @@ before_script:
|
|
|
- if [[ $settlePath == '' ]]; then sudo sed '$a\export ORACLE_HOME=/etc/instantclient_19_9\n export PATH=\$PATH:/etc/instantclient_19_9\n export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/etc/instantclient_19_9\' /etc/profile -i; source /etc/profile; fi
|
|
|
- sudo apt-get install libaio*
|
|
|
- result=`sudo pecl list|grep oci8`
|
|
|
- - if [[ $result != '' ]] ; then printf "instantclient,/etc/instantclient_19_9\n" |sudo pecl install oci8|grep; fi
|
|
|
+ - if [[ $result == '' ]] ; then printf "instantclient,/etc/instantclient_19_9\n" |sudo pecl install oci8|grep; fi
|
|
|
- sudo cp /usr/lib/php/20190902/oci8.so /usr/lib/php/20190902/oci8_12c;
|
|
|
- phpIni=`php -i|grep "Loaded Configuration File"` && arr=(${phpIni//=>/}) && iniPath=${arr[3]}
|
|
|
- sudo sed -i 's/^;\(extension=oci8_12c\)/\1/' $iniPath
|