Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
45c24228
Commit
45c24228
authored
Oct 10, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: silence tar's leading slash removal warning
parent
b3063e60
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
rc.backup_dhcpleases
src/etc/rc.backup_dhcpleases
+1
-1
rc.backup_netflow
src/etc/rc.backup_netflow
+1
-1
rc.backup_rrd
src/etc/rc.backup_rrd
+1
-1
No files found.
src/etc/rc.backup_dhcpleases
View file @
45c24228
...
@@ -9,6 +9,6 @@ if [ "${1}" = "restore" ]; then
...
@@ -9,6 +9,6 @@ if [ "${1}" = "restore" ]; then
fi
fi
else
else
if
[
-d
"
${
BACKUPDIR
}
"
]
;
then
if
[
-d
"
${
BACKUPDIR
}
"
]
;
then
tar
-C
/
-czf
"
${
BACKUPFILE
}
"
"
${
BACKUPDIR
}
"
tar
-C
/
-czf
"
${
BACKUPFILE
}
"
.
"
${
BACKUPDIR
}
"
fi
fi
fi
fi
src/etc/rc.backup_netflow
View file @
45c24228
...
@@ -10,7 +10,7 @@ if [ "${1}" = "restore" ]; then
...
@@ -10,7 +10,7 @@ if [ "${1}" = "restore" ]; then
else
else
if
[
-d
"
${
BACKUPDIR
}
"
]
;
then
if
[
-d
"
${
BACKUPDIR
}
"
]
;
then
/usr/local/etc/rc.d/flowd_aggregate stop
/usr/local/etc/rc.d/flowd_aggregate stop
tar
-C
/
-czf
"
${
BACKUPFILE
}
"
"
${
BACKUPDIR
}
"
tar
-C
/
-czf
"
${
BACKUPFILE
}
"
.
"
${
BACKUPDIR
}
"
if
[
"
${
1
}
"
!=
"stop"
]
;
then
if
[
"
${
1
}
"
!=
"stop"
]
;
then
/usr/local/etc/rc.d/flowd_aggregate start
/usr/local/etc/rc.d/flowd_aggregate start
fi
fi
...
...
src/etc/rc.backup_rrd
View file @
45c24228
...
@@ -9,6 +9,6 @@ if [ "${1}" = "restore" ]; then
...
@@ -9,6 +9,6 @@ if [ "${1}" = "restore" ]; then
fi
fi
else
else
if
[
-d
"
${
BACKUPDIR
}
"
]
;
then
if
[
-d
"
${
BACKUPDIR
}
"
]
;
then
tar
-C
/
-czf
"
${
BACKUPFILE
}
"
"
${
BACKUPDIR
}
"
tar
-C
/
-czf
"
${
BACKUPFILE
}
"
.
"
${
BACKUPDIR
}
"
fi
fi
fi
fi
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