1 2 3 4 5 6 7 8 9 10 11 12 13 14
post_install() { if [ -f /etc/systemconfig ] then . /etc/systemconfig if [ -f /etc/php/php.ini ] then sed -i 's|^.*date.timezone.*$|date.timezone='${timezone}'|' /etc/php/php.ini fi fi } post_upgrade() { post_install }