diff --git a/medicine-remd/crontab.sh b/medicine-remd/crontab.sh index 87859c3..7b2ef76 100755 --- a/medicine-remd/crontab.sh +++ b/medicine-remd/crontab.sh @@ -1,2 +1,4 @@ #!/bin/bash -sudo /bin/bash -c 'echo "30 23 * * * root /root/medicine-config/medicine-remd/update.sh" >> /etc/crontab' + +sudo echo "30 23 * * * root /root/medicine-config/medicine-remd/update.sh" > /etc/cron.d/medicine_remd_update +sudo chmod 600 /etc/cron.d/medicine_remd_update