git://git.onelab.eu
/
infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
created from what was running on www.planet-lab.eu in etc/cron.daily
[infrastructure.git]
/
scripts
/
crontabs.sh
diff --git
a/scripts/crontabs.sh
b/scripts/crontabs.sh
index
585b7dd
..
3f9ebf9
100755
(executable)
--- a/
scripts/crontabs.sh
+++ b/
scripts/crontabs.sh
@@
-30,7
+30,6
@@
# the config file can optionnally get passed as an argument
COMMAND=$(basename $0)
# the config file can optionnally get passed as an argument
COMMAND=$(basename $0)
-REV=$(echo '$Revision: 437 $' | sed -e 's,\$,,g')
DEF_CONFIG="$HOME/.$(basename ${COMMAND} .sh)rc"
DEF_CONFIG="$HOME/.$(basename ${COMMAND} .sh)rc"
@@
-196,7
+195,7
@@
main () {
done
if [ -n "$OPT_VERSION" ] ; then
done
if [ -n "$OPT_VERSION" ] ; then
- echo "This is $COMMAND
, $REV
"
+ echo "This is $COMMAND"
exit 0
fi
exit 0
fi
@@
-204,6
+203,7
@@
main () {
CONFIG=$1; shift
else
CONFIG=$DEF_CONFIG
CONFIG=$1; shift
else
CONFIG=$DEF_CONFIG
+ [ -f $CONFIG ] || echo localhost > $CONFIG
fi
parse_config $CONFIG
fi
parse_config $CONFIG