#!/bin/bash

echo "-- $0 --"

cp data/distro-sync.sh /etc/cron.weekly/distro-sync.sh
chmod 0644 /etc/cron.weekly/distro-sync.sh

#cp data/distro-sync.sh /etc/cron.d/distro-sync.sh
#chmod 0644 /etc/cron.d/distro-sync.sh
#date_stamp=$(date +%Y%m%d)
#tmp_file=/tmp/crontab-${date_stamp}
#crontab -l >${tmp_file}
#echo "11 19  */2 * *    /bin/bash /etc/cron.d/distro-sync.sh" >>${tmp_file}
#crontab ${tmp_file}
