Commit 53efca6c authored by Robert Spencer's avatar Robert Spencer

Remove legacy crontab support

parent 6ef0a674
......@@ -19,16 +19,6 @@
export PATH="$PATH:/sbin:/usr/sbin"
# Legacy crontab support
case ${0##*/} in
backup-daily)
PERIOD="daily"
;;
backup-weekly)
PERIOD="weekly"
;;
esac
# Parse options
OPTIND=1
while getopts ":o:v" OPTION
......@@ -45,9 +35,12 @@ done
# Remove option from parameters
shift $(expr $OPTIND - 1)
if [ -z "$PERIOD" -a -n "$1" ]
if [ -n "$1" ]
then
PERIOD="$1"
else
echo "ERROR: You need to specify a period [daily or weekly]."
exit 1
fi
if [ -e /etc/backstep-traceback/${PERIOD}.conf ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment