From 042279263e5b261426f46a95857db0464a8262d9 Mon Sep 17 00:00:00 2001 From: Dragan Dosen Date: Wed, 2 Apr 2008 18:21:14 +0200 Subject: [PATCH] Change permissions on php.ini files to 644. Problem while using 'printf' for writing PHP5 extensions configuration. --- debian/changelog | 2 ++ debian/postinst | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 9704826..f406520 100644 --- a/debian/changelog +++ b/debian/changelog @@ -16,6 +16,8 @@ php5-cn (5.2.0-5) stable; urgency=medium prve instalacije paketa ili u slucaju da se pokrene * README.CARNet datoteka - opisano odredjivanje preporucene vrijednosti za post_max_size i memory_limit postavke. + * provjera dozvola pristupa za svaku PHP5 konfiguracijsku + datoteku (file access permissions, chmod 644). -- Dragan Dosen Sun, 30 Mar 2008 22:10:32 +0200 diff --git a/debian/postinst b/debian/postinst index 25b9804..32ef34f 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 php5ext in $EXTENSIONS; do cp_echo "CN: Adding $php5ext extension to file $PHP5CONFD/$php5ext.ini" - printf "# configuration for php %s module\nextension=%s\n" "${php5ext_up}" "${php5ext}" >> "$INITMP" + printf "# configuration for php %s module\nextension=%s.so\n" "${php5ext_up}" "${php5ext}" >> "$INITMP" cp_mv "$INITMP" "$PHP5CONFD/$php5ext.ini" need_restart=1 @@ -157,6 +158,7 @@ for php5ext in $EXTENSIONS; do need_restart=1 fi fi + chmod 644 $PHP5CONFD/$php5ext.ini done -- 1.7.10.4