diff options
-rwxr-xr-x | bin/cron | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -3,4 +3,15 @@ # Arquivo automatic syncronizer. # -cd /var/cache/sites/arquivo && /usr/bin/ionice -c 3 /usr/bin/nice -n 19 /usr/bin/git annex add . && /usr/bin/ionice -c 3 /usr/bin/nice -n 19 /usr/bin/git annex sync &> /dev/null +# Parameters +CWD="`/bin/pwd`" +GIT="/usr/bin/git" +NICE="/usr/bin/nice -n 19" +IONICE="/user/bin/ionice -c 3" +ARCHIVE="/var/cache/sites/arquivo" + +# Run +cd $ARCHIVE +$IONICE $NICE $GIT annex add . && \ +$IONICE $NICE $GIT annex sync &> /dev/null +cd $CWD |