mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-18 20:44:20 +01:00
11 lines
259 B
Bash
11 lines
259 B
Bash
if ! crontab -u admin -l | grep checkHiddenService; then
|
|
cronjob="0,15,30,45 * * * * /home/admin/checkHiddenService"
|
|
(
|
|
crontab -u admin -l
|
|
echo "$cronjob"
|
|
) | crontab -u admin -
|
|
fi
|
|
echo "# The crontab for admin now is:"
|
|
crontab -u admin -l
|
|
echo
|