diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2015-05-30 00:17:05 +0000 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2018-04-29 20:50:33 -0700 |
commit | 0dbf309cfb9d3dac551f8ef6be29ed149999b70e (patch) | |
tree | 6bfba04e594cf53fd3da2d57bd93fae2f3feaca0 | |
parent | f32d057e37c963d10b7a8f6f1906b0841302e0ac (diff) | |
download | dotfiles-0dbf309cfb9d3dac551f8ef6be29ed149999b70e.tar.gz |
disable loadcron on SDF cluster
-rw-r--r-- | archive/.zshrc | 2 | ||||
-rwxr-xr-x | bin/loadcron | 50 |
2 files changed, 3 insertions, 49 deletions
diff --git a/archive/.zshrc b/archive/.zshrc index b37003b6..53a66d0b 100644 --- a/archive/.zshrc +++ b/archive/.zshrc @@ -59,7 +59,7 @@ precmd() { # --- aliases -alias ls="ls -F --color=always" +alias ls="ls -F" alias ll="ls -al" alias g="git" alias ga="git annex" diff --git a/bin/loadcron b/bin/loadcron index 185ae8f2..b60ff123 100755 --- a/bin/loadcron +++ b/bin/loadcron @@ -1,51 +1,5 @@ #!/bin/sh -# Load a crontab from ~/.config/cron. Replace "$HOME" with actual -# homedir because cron can't deal with $HOME in crontabs +# disabled on SDF cluster with its weird cron setup -# This script was originally written by Joey Hess: -# http://git.kitenet.net/?p=joey/home.git;a=blob;f=bin/loadcron - -set -e - -WARNING="# Automatically generated by loadcron; edit ~/.config/cron/ files instead." - -if [ ! -z "`crontab -l`" ] && ! crontab -l | grep -q "$WARNING"; then - if [ "$1" != "-f" ]; then - echo "loadcron: Current crontab was not generated by loadcron; not changing." >&2 - echo "loadcron: Use loadcron -f to override" - exit 1 - else - crontab -l > $HOME/tmp/oldcrontab - echo "loadcron: Old crontab is backed up to $HOME/tmp/oldcrontab" - fi -fi - -tab=$HOME/.config/cron/$(whoami)_$(hostname -f) -if [ -e "$tab" ]; then - ( - echo "$WARNING" - echo - echo "# From $tab:" - sed "s!\$HOME!$HOME!g" < "$tab" - # anacron: disabled because I don't have any useful anacron - # jobs on any hosts at present - # hostanacrontab=$HOME/.config/anacron/$(whoami)_$(hostname -f) - # mkdir -p $HOME/local/anacron/spool - # if [ -e "$hostanacrontab" ]; then - # echo "# Personal anacron:" - # echo "0 8 * * * anacron -s -t $hostanacrontab -S $HOME/local/anacron/spool" - # echo "@reboot anacron -s -t $hostanacrontab -S $HOME/local/anacron/spool" - # echo - # fi - ) | crontab - -else - echo "loadcron: $tab does not exist, not loading" >&2 -fi - -# units=$HOME/.config/host-user-units/`hostname -f` -# if [ -e "$units" ]; then -# cat "$units" | while read unit; do -# systemctl --user enable "$unit" -# done -# fi +exit 0 |