Skip to content

Commit

Permalink
Fix post-install.sh to add tz
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Feb 8, 2020
1 parent 8d37757 commit 6026e7a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion php-5.3/post-install.sh
Expand Up @@ -4,4 +4,7 @@ for tool in php$v php-cgi$v php-config$v phpize$v; do
tool_name=${tool/[0-9]*/}
sudo update-alternatives --set $tool_name /usr/bin/"$tool_name$v"
fi
done
done
ini_file=$(php -d "date.timezone=UTC" --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
sudo chmod 777 "$ini_file"
echo "date.timezone=UTC" >>"$ini_file"
5 changes: 4 additions & 1 deletion php-5.4/post-install.sh
Expand Up @@ -5,5 +5,8 @@ for tool in php$v php-cgi$v php-config$v phpize$v; do
sudo update-alternatives --set $tool_name /usr/bin/"$tool_name$v"
fi
done
ini_file=$(php -d "date.timezone=UTC" --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
sudo chmod 777 "$ini_file"
echo "date.timezone=UTC" >>"$ini_file"
sudo php5enmod redis
sudo php5enmod xdebug
sudo php5enmod xdebug
3 changes: 3 additions & 0 deletions php-5.5/post-install.sh
Expand Up @@ -5,5 +5,8 @@ for tool in php$v php-cgi$v php-config$v phpize$v; do
sudo update-alternatives --set $tool_name /usr/bin/"$tool_name$v"
fi
done
ini_file=$(php -d "date.timezone=UTC" --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
sudo chmod 777 "$ini_file"
echo "date.timezone=UTC" >>"$ini_file"
sudo php5enmod redis
sudo php5enmod xdebug

0 comments on commit 6026e7a

Please sign in to comment.