php.ini changes

This commit is contained in:
Matthias Drobny 2014-10-16 10:49:16 +02:00
parent 25c291329e
commit db28ebc79d
2 changed files with 15 additions and 1 deletions

View File

@ -53,6 +53,6 @@ AUX zabbix-proxy.tmpfiles 35 SHA256 d0516a64ad0841dac41faf0ca709ff16405346f1e9d1
AUX zabbix-server.service 281 SHA256 53465d624fc5cd4d00586119234c2d3d763b63a2721f9410392cb77f73db4a74 SHA512 b002e8efdc58300fc06ed1e1028f64d525dfaff52d74e661dbb4da3750b785d817d2bdff96f4ea3a28545fda4e37df962ec7a28b70868cc4b50b63ea27b088ff WHIRLPOOL caf2ef91caf33b517623e5c4e81bf635886d5199ec1f33389dee33cbb2d13c78d54911daac2d1af317d0b2b32d361424a961d7530a690d30f3d0089fb96e4808
AUX zabbix-server.tmpfiles 35 SHA256 d0516a64ad0841dac41faf0ca709ff16405346f1e9d1bcb00dcffe37ac6b689b SHA512 3c63a2791e6ac77cb3144eb47a275cc8748f5c8943a076052300d6964994b95b18d60f504584fdcb683739dc514261402895e3f30ae2fbdb218acbc42c3d72df WHIRLPOOL f8a3202aa65ecdf733cd8f9208c294dd2086d4de11682c01bd18f7122b0c3d2e1e3da4775020beca68f5bb9be8e14f57c50b0c18ecbad3c2c23237d3572e3b39
DIST zabbix-2.4.1.tar.gz 14730972 SHA256 e47b328c2babcc7c37b27c96732b5f6ac28a935901acf8a3d340887ba64bece4 SHA512 8cf19262503ade91188cc6a9653fd2f13c966cc2638b9c36f1ecfb989707fc991cfa3bfa487b0c8a230caa6e344105a4494fd3981d8b09c07048842369e71dc2 WHIRLPOOL 5907ef1eb71c175879e93be7151a1c313a5a90d05ffdd1a2189beb22133fa08d24fb72749e0e9a13fa7a6a5b3eb0470d0331e05cd15e2f77ffdb616d5aaf24ec
EBUILD zabbix-2.4.1.ebuild 10177 SHA256 fc15fa7334812230ff4739f633e4553de8b219fc1b7ae16fa780f796276b1606 SHA512 35367070a01ef0b5bbb94bba1ad85c2a6fd41e759a3ed431d12ea8742ae2a572781f1704c61db0d7e697abb45bf50c534e797f5222ec60e16540893954b37309 WHIRLPOOL ed979699c41905e5aae733afc7cdb4722f94cb5561ebc53fca8d30e57af7ff88a4383e75b3138c199a193022d028ef3d23d0b04b69011fbac034d4d395701e08
EBUILD zabbix-2.4.1.ebuild 10708 SHA256 d7741539ad070ab447044b6723d3cf3df7e090faaa8e87cfaca3b9d86bf99317 SHA512 8873b869dfbfd94daada922cf2c105c1c1b8a15664b181d49c41d8abe1e9f2e3a34277133c2e4330006049d12776d085b2490ab8d3e7b38bfc68a0aeb8118623 WHIRLPOOL e58855215ea628cac6d26057f1deab8be367c297227418e4ec01442846cc1c884c2108ea4ecae5005ba6155cf5e2c2f2767b85b0c2423dd158c444e314904b2f
MISC ChangeLog 38192 SHA256 ab3ae5d2bbc07db9b986e109ab9f17e888ea96246bfdd091063f96c760546ec9 SHA512 73ec2d31906aebf07a05edf0184dfaa964ed41249f7e05ec093c137ea1151cc44248591216c55b6360e7fdebfc1627d58918648b6408c96bf1d9f6bca8e5978b WHIRLPOOL 645a94821eefa0cffcf58208f7eebeac6491030dca8bb7ddd6e6bdbc6681f3299e5259efba86856d12de92bf014f91cfaefc0f249ad2d21537a175c56a3b959e
MISC metadata.xml 1221 SHA256 94d1841cf3efb9a709dbc9ee160a29c394a1c0f5af5069fe1466f9f08796c72d SHA512 3d3ed8e75fcd9f521402a9734d5bd19c163a7a5d33cef3b20b6e476416fc352a91a62782ecc0ed032efbafd5f07f6ac08e28a88fb766095a1bba146f8f50b5e5 WHIRLPOOL ae2d69cab99c364721ca2e806fc5e02d1dbe72ad48bea43b4d1a0fd49c00cc2b94ea6ea85f4f5a9ff90522a90ade17fe816fe85ca7a16e755d02239d4426da92

View File

@ -203,6 +203,20 @@ pkg_postinst() {
;;
esac
fi
if use server; then
PHPVER=`eselect php list apache2 | grep "*" | cut -d \ -f 6`
elog
elog "Alter current php.ini to match Zabbix requirements:"
elog "post_max_size = 16M"
elog "max_execution_time = 300"
elog "max_input_time = 300"
elog
cat /etc/php/apache2-${PHPVER}/php.ini | \
sed 's/^post_max_size\ =\ .*$/post_max_size\ =\ 16M/g' | \
sed 's/^max_execution_time\ =\ .*$/max_execution_time\ =\ 300/g' | \
sed 's/^max_input_time\ =\ .*$/max_input_time\ =\ 300/g' > /etc/php/apache2-${PHPVER}/php.ini
fi
}
src_configure() {