mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Fix Min and hour limit in cron validation
This commit is contained in:
parent
8a217352fe
commit
2e03b516f8
1 changed files with 5 additions and 1 deletions
|
@ -723,8 +723,12 @@ is_ip_status_format_valid() {
|
||||||
|
|
||||||
# Cron validator
|
# Cron validator
|
||||||
is_cron_format_valid() {
|
is_cron_format_valid() {
|
||||||
limit=60
|
limit=59
|
||||||
check_format=''
|
check_format=''
|
||||||
|
if [ "$2" = 'hour' ]; then
|
||||||
|
limit=23
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$2" = 'day' ]; then
|
if [ "$2" = 'day' ]; then
|
||||||
limit=31
|
limit=31
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue