From 3981fc0eed7c06834b2f49c555e1912a9cd52c6f Mon Sep 17 00:00:00 2001 From: Dragan Dosen Date: Wed, 31 Oct 2007 19:25:35 +0000 Subject: [PATCH] r3: * postinst - provjera postojanosti direktorija apache, apache2, cgi, cli unutar direktorija /etc/php5/. --- debian/postinst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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$" \ -- 1.7.10.4