diff options
author | Arquivo Publico de Memoria Coletiva <arquivo@sarava.org> | 2015-08-01 16:02:36 -0300 |
---|---|---|
committer | Arquivo Publico de Memoria Coletiva <arquivo@sarava.org> | 2015-08-01 16:02:36 -0300 |
commit | aa7bfe5f51d600d5e80781bf455a6b5900ba3b30 (patch) | |
tree | a0f03393d0e80ee310e894d44938f7a43128d8ed /bin | |
parent | f27668cff7e8f9a4a2c4d0d2a09f14892c9bea6c (diff) | |
download | arquivo-aa7bfe5f51d600d5e80781bf455a6b5900ba3b30.tar.gz arquivo-aa7bfe5f51d600d5e80781bf455a6b5900ba3b30.tar.bz2 |
Parametrize bin/cron
Diffstat (limited to 'bin')
-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 |