mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
-gt
This commit is contained in:
parent
e1a36d30dc
commit
d2f14f63c3
@ -1196,7 +1196,7 @@ function task_automate {
|
|||||||
echo_need
|
echo_need
|
||||||
read INPUT_AUTO_FREQ
|
read INPUT_AUTO_FREQ
|
||||||
|
|
||||||
if [ $INPUT_AUTO_FREQ > 60 ]
|
if [ $INPUT_AUTO_FREQ -gt 60 ]
|
||||||
# then
|
# then
|
||||||
# AUTO_FREQ='60'
|
# AUTO_FREQ='60'
|
||||||
# elif [ $INPUT_AUTO_FREQ == 2 ]
|
# elif [ $INPUT_AUTO_FREQ == 2 ]
|
||||||
@ -1215,14 +1215,13 @@ function task_automate {
|
|||||||
MESSAGE="Invalid Input"
|
MESSAGE="Invalid Input"
|
||||||
echo_fail
|
echo_fail
|
||||||
exit_nochange
|
exit_nochange
|
||||||
fi
|
else
|
||||||
|
MESSAGE="Saving to Crontab"
|
||||||
MESSAGE="Saving to Crontab"
|
echo_stat
|
||||||
echo_stat
|
|
||||||
(crontab -l 2>/dev/null; echo "*/${AUTO_FREQ} * * * * ${BASH_PATH} $HOME/${LOCAL_FOLDR}/${GS_FILENAME} pull > ${LOG_PATH}/${CRONJOB_LOG}") | crontab -
|
(crontab -l 2>/dev/null; echo "*/${AUTO_FREQ} * * * * ${BASH_PATH} $HOME/${LOCAL_FOLDR}/${GS_FILENAME} pull > ${LOG_PATH}/${CRONJOB_LOG}") | crontab -
|
||||||
error_validate
|
error_validate
|
||||||
|
exit_withchange
|
||||||
exit_withchange
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
## Configure Task
|
## Configure Task
|
||||||
|
Loading…
Reference in New Issue
Block a user