Skip to content

Commit

Permalink
verify
Browse files Browse the repository at this point in the history
timezone check added
  • Loading branch information
QROkes committed Apr 29, 2022
1 parent 2c99c02 commit 2199c2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/verify
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,12 @@ if [[ -z $critical_mode ]]; then
local ver_six_war="1"
fi
fi

# Check if timezone is set
if [[ -z $(conf_read timezone) ]] || ! grep -Fxq $(conf_read timezone) /opt/webinoly/lib/timezone.dat; then
echo "${dim}- [WARNING] Timezone is not set or not valid!${end}${red}"
local ver_six_war="1"
fi


if [[ $ver_six_err == "1" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion usr/webinoly
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ elif [[ -n $timezone ]]; then
if [[ $timezone == true ]]; then
echo "${blu}${bol}"
echo "Please, enter a valid Timezone for Ubuntu and PHP. ${end}"
echo "${blu}${dim}http://php.net/manual/en/timezones.php ${end}"
echo "${blu}${dim}https://www.php.net/manual/en/timezones.php ${end}"
echo ""
read -p "${blu}Timezone: ${end}" timezone
echo ""
Expand Down

0 comments on commit 2199c2a

Please sign in to comment.