Change permissions on php.ini files to 644.
authorDragan Dosen <bane@nekkar.carnet.hr>
Wed, 2 Apr 2008 12:30:56 +0000 (14:30 +0200)
committerDragan Dosen <bane@nekkar.carnet.hr>
Wed, 2 Apr 2008 16:02:14 +0000 (18:02 +0200)
debian/postinst

index 6979c4e..5fca481 100755 (executable)
@@ -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