Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
awit-backstep
awit-backstep-traceback
Commits
53efca6c
Commit
53efca6c
authored
Mar 29, 2017
by
Robert Spencer
Browse files
Remove legacy crontab support
parent
6ef0a674
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/backstep-traceback-auto
View file @
53efca6c
...
...
@@ -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
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment