X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=3e3d9c4026e10c6b5bf60aeeafa0ab0b74f6d2fe;hb=4f801db34098e1c5fc78882dbeaf2a5d335a0308;hp=4d7359047853c8ec944c1b79ed424506660916c9;hpb=21cc3b75fcffb70d9f2d424468a5ba9914801b6b;p=php5-cn.git diff --git a/debian/postinst b/debian/postinst index 4d73590..3e3d9c4 100755 --- a/debian/postinst +++ b/debian/postinst @@ -112,17 +112,21 @@ 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$" \ 's/^[[:space:]]*upload_max_filesize[[:space:]]*=.*/upload_max_filesize = 256M/' \ "$ini_file" && need_restart=1 || true - cp_check_and_sed "^[[:space:]]*post_max_size[[:space]]*=[[:space:]]*8M$" \ + cp_check_and_sed "^[[:space:]]*post_max_size[[:space:]]*=[[:space:]]*8M$" \ 's/^[[:space:]]*post_max_size[[:space:]]*=.*/post_max_size = 256M/' \ "$ini_file" && need_restart=1 || true