File tree 1 file changed +25
-1
lines changed
1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -126,4 +126,28 @@ runs:
126
126
rm /opt/oracle/instantclient/sdk/include/ldap.h
127
127
# fix debug build warning: zend_signal: handler was replaced for signal (2) after startup
128
128
echo DISABLE_INTERRUPT=on > /opt/oracle/instantclient/network/admin/sqlnet.ora
129
- sh -c 'echo /opt/oracle/instantclient >/etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig'
129
+ if [ -f /etc/alpine-release ]; then
130
+ echo "TODO SETUP"
131
+
132
+ $ORACLE_INSTANTCLIENT_LIBPATH=/opt/oracle/instantclient
133
+
134
+ ls -lah $ORACLE_INSTANTCLIENT_LIBPATH
135
+
136
+ if ! test -e /usr/lib/libresolv.so.2 && test -e /lib/libc.so.6; then
137
+ ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2
138
+ fi
139
+ installOracleInstantClient_ldconf=/etc/ld-musl-x86_64.path
140
+ if test -e "$installOracleInstantClient_ldconf"; then
141
+ if ! cat "$installOracleInstantClient_ldconf" | grep -q "$ORACLE_INSTANTCLIENT_LIBPATH"; then
142
+ cat "$ORACLE_INSTANTCLIENT_LIBPATH" | awk -v suffix=":$ORACLE_INSTANTCLIENT_LIBPATH" '{print NR==1 ? $0suffix : $0}' >"$ORACLE_INSTANTCLIENT_LIBPATH"
143
+ fi
144
+ else
145
+ echo "/lib64:/lib:/usr/local/lib:/usr/lib:$ORACLE_INSTANTCLIENT_LIBPATH" >"$installOracleInstantClient_ldconf"
146
+ fi
147
+
148
+
149
+
150
+
151
+ else
152
+ sh -c 'echo /opt/oracle/instantclient >/etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig'
153
+ fi
You can’t perform that action at this time.
0 commit comments