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