From: Dragan Dosen Date: Wed, 31 Oct 2007 19:25:35 +0000 (+0000) Subject: r3: * postinst - provjera postojanosti direktorija apache, apache2, X-Git-Tag: v5.3.3+3~27 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=3981fc0eed7c06834b2f49c555e1912a9cd52c6f;p=php5-cn.git r3: * postinst - provjera postojanosti direktorija apache, apache2, cgi, cli unutar direktorija /etc/php5/. --- diff --git a/debian/postinst b/debian/postinst index 4d73590..397757c 100755 --- a/debian/postinst +++ b/debian/postinst @@ -112,10 +112,14 @@ done # for SAPI in apache apache2 cgi cli; do + if [ ! -d "$PHP5DIR/$SAPI" ]; then + continue + fi + ini_file="$PHP5DIR/$SAPI/php.ini" cp_echo "CN: Checking and enabling some CARNet specific parameters in file $ini_file" - + if [ -f "$ini_file" ]; then cp_check_and_sed "^[[:space:]]*upload_max_filesize[[:space:]]*=[[:space:]]*2M$" \