Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
Prevent some warnings in server reset.
Typo in conf file.
  • Loading branch information
QROkes committed Jun 23, 2024
1 parent 2e0f8b4 commit 7e37245
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/install
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ mysql_tool_pma() {

set_timezone() {
if [[ -n $(conf_read timezone) ]] && grep -Fxq $(conf_read timezone) /opt/webinoly/lib/timezone.dat; then
sudo systemctl daemon-reload # Prevent some warnings, also useful in server-reset!
sudo timedatectl set-timezone $(conf_read timezone)
if [[ $(conf_read php) == "true" ]]; then
sudo sed -i "/date.timezone =/c\date.timezone = $(conf_read timezone)" /etc/php/$(conf_read php-ver)/fpm/php.ini
Expand Down
4 changes: 2 additions & 2 deletions templates/general/conf
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,9 @@

# PHP maximum amount of memory that a script is allowed to allocate
# Values: numeric int (MB)
# Default: 192
# Default: 256
###########################
#php-max-mem:192
#php-max-mem:256


# PHP maximum time in seconds a script is allowed to run before it is terminated
Expand Down

0 comments on commit 7e37245

Please sign in to comment.