Fixes for makefile and aether.bash -- deduplicate the right files.

This commit is contained in:
dev
2016-08-10 12:44:54 -05:00
parent 0b7c6305e1
commit 751925085e
2 changed files with 6 additions and 3 deletions

View File

@@ -8,7 +8,10 @@ client: user aether.bash
chown aether /home/aether/aether.bash
chmod 0700 /home/aether/aether.bash
/home/aether/aether.bash
echo '0 1 * * * /home/aether/aether.bash &>> /var/log/aether.log' | su cford -c "crontab"
crontab -l > /tmp/cronie
grep aether.bash /tmp/cronie || echo '0 1 * * * /home/aether/aether.bash &>> /var/log/aether.log' >> /tmp/cronie
crontab /tmp/cronie
rm /tmp/cronie
touch /var/log/aether.log
chown aether:aether /var/log/aether.log