* provjera SAPI direktorija
# configuration files.
for SAPI in apache apache2 cgi cli; do
- ini_file="$PHP5DIR/$SAPI/php.ini"
+ if [ -d "$PHP5DIR/$SAPI" ]; then
+
+ ini_file="$PHP5DIR/$SAPI/php.ini"
- if [ -f "$ini_file" ]; then
+ if [ -f "$ini_file" ]; then
cp_echo "CN: Removing $php5ext extension from file $ini_file"
cp_check_and_sed "$php5ext_re" \
"/$php5ext_re/d" \
"$ini_file" && need_restart=1 || true
- fi
+ fi
+ fi
done
# Check $PHP5CONFD directory.