|
|
@@ -48,10 +48,10 @@ before_script:
|
|
|
#- sudo echo /etc/instantclient_19_9/ > /etc/ld.so.conf.d/oracle-instantclient
|
|
|
#- sudo ldconfig
|
|
|
- settlePath=`sudo cat /etc/profile|grep ORACLE_HOME`
|
|
|
- #- if [[ $settlePath == '' ]]; then; sudo sed '$a\export ORACLE_HOME=/etc/instantclient_19_9\nexport PATH=\$PATH:/etc/instantclient_19_9\nexport LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/etc/instantclient_19_9\' /etc/profile -i; source /etc/profile; fi
|
|
|
+ - 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=`printf "instantclient,/etc/instantclient_19_9\n" |sudo pecl install oci8|grep "already installed"`
|
|
|
- #- if [[ $result != '' ]] ; then echo 'oci8 installed'; fi
|
|
|
+ - if [[ $result != '' ]] ; then echo 'oci8 installed'; 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
|