From e274c81b4afb1ac146414d6c5b306d7caee1c12f Mon Sep 17 00:00:00 2001 From: Dragan Dosen Date: Wed, 2 Apr 2008 14:30:56 +0200 Subject: [PATCH] Change permissions on php.ini files to 644. --- debian/postinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 6979c4e..5fca481 100755 --- a/debian/postinst +++ b/debian/postinst @@ -96,6 +96,7 @@ for SAPI in apache2 cli; do cp_mv $ini_file_tmp $ini_file need_restart=1 fi + chmod 644 $ini_file done @@ -139,7 +140,7 @@ for php4ext in $EXTENSIONS; do cp_echo "CN: Adding $php4ext extension to file $PHP4CONFD/$php4ext.ini" - printf "# configuration for php %s module\nextension=%s\n" "${php4ext_up}" "${php4ext}" >> "$INITMP" + printf "# configuration for php %s module\nextension=%s.so\n" "${php4ext_up}" "${php4ext}" >> "$INITMP" cp_mv "$INITMP" "$PHP4CONFD/$php4ext.ini" need_restart=1 @@ -157,6 +158,7 @@ for php4ext in $EXTENSIONS; do need_restart=1 fi fi + chmod 644 $PHP4CONFD/$php4ext.ini done -- 1.7.10.4