Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Oct 23, 2019
2 parents fe74ab1 + 6bfdd46 commit 618f681
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions menu/cron/cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ question1() {
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PG Cron - Schedule Cron Jobs (Backups) | $program?
⌛ Cron - Schedule Cron Jobs (Backups) | $program?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Reference: http://cron.pgblitz.com
[1] No
[2] Yes
[ 1 ] No
[ 2 ] Yes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
Expand All @@ -41,28 +41,29 @@ question2() {
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PG Cron - Backup How Often?
⌛ Cron - Backup How Often?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WEEKLY
0 - Sunday
[1] Monday
[2] Tuesday
[3] Wednesday
[4] Thursday
[5] Friday
[6] Saturday
[ 0 ] - Monday
[ 1 ] - Tuesday
[ 2 ] - Wednesday
[ 3 ] - Thursday
[ 4 ] - Friday
[ 5 ] - Saturday
[ 6 ] - Sunday
DAILY
[7] Daily
[ D ] - Daily
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF

read -p '↘️ Type Number | Press [ENTER]: ' typed </dev/tty
if [[ "$typed" -ge "0" && "$typed" -le "7" ]]; then
echo $typed >/var/plexguide/cron/cron.day && break=1
elif [ "$typed" == "8" ]; then
elif [[ "$typed" == "D" || "$typed" == "d" ]]; then
echo "*/1" >/var/plexguide/cron/$program.cron.day && break=1
else badinput; fi
}
Expand Down

0 comments on commit 618f681

Please sign in to comment.