Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bbharathkumarreddy committed Jan 16, 2020
1 parent 9a2f38a commit b1b46e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions system/scripts/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ install_php(){

sed -i "s/user = www-data/user = root/g" $php_www_conf_file
sed -i "s/group = www-data/group = root/g" $php_www_conf_file
sed -i "s//etc/php/7.2/fpm/php-fpm.conf//etc/php/7.2/fpm/php-fpm.conf -R/g" $php_fpm_service_file
sed -i "s/\/etc\/php\/7.2\/fpm\/php-fpm.conf/\/etc\/php\/7.2\/fpm\/php-fpm.conf -R/g" $php_fpm_service_file

systemctl daemon-reload

Expand All @@ -198,7 +198,8 @@ install_php(){
#sudo cp $files_path'php_info.php' $site_path'php/php_info.php'
sudo cp $php_ini_file $backup_path'php.ini.bck'
sed -i 's,^date.timezone =.*$,date.timezone = "'$time_zone'",' $php_ini_file
sudo service $php_service_name reload
sudo service $php_service_name stop
sudo service $php_service_name start

new_php_timezone_string=$(sudo grep "\bdate.timezone\b" $php_ini_file | tail -1 | grep -o '"[^"]\+"');
echo "PHP New Current Timezone = ${new_php_timezone_string}"
Expand Down

0 comments on commit b1b46e5

Please sign in to comment.