Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
awit-backstep-traceback
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
awit-backstep-traceback
awit-backstep-traceback
Commits
53efca6c
Commit
53efca6c
authored
Mar 29, 2017
by
Robert Spencer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove legacy crontab support
parent
6ef0a674
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
scripts/backstep-traceback-auto
scripts/backstep-traceback-auto
+4
-11
No files found.
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
Markdown
is supported
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