mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 02:25:05 +00:00
rc: explicitly use `-p' , it should be set but can't go wrong here
PR: https://github.com/opnsense/core/issues/1077
This commit is contained in:
parent
a89858db9d
commit
2c2192d70d
@ -5,7 +5,7 @@ BACKUPDIR="/var/dhcpd/var/db"
|
||||
|
||||
if [ "${1}" = "restore" ]; then
|
||||
if [ -f "${BACKUPFILE}" ]; then
|
||||
tar -C / -xzf "${BACKUPFILE}"
|
||||
tar -C / -xzpf "${BACKUPFILE}"
|
||||
fi
|
||||
else
|
||||
if [ -d "${BACKUPDIR}" ]; then
|
||||
|
||||
@ -5,7 +5,7 @@ BACKUPDIR="/var/netflow"
|
||||
|
||||
if [ "${1}" = "restore" ]; then
|
||||
if [ -f "${BACKUPFILE}" ]; then
|
||||
tar -C / -xzf "${BACKUPFILE}"
|
||||
tar -C / -xzpf "${BACKUPFILE}"
|
||||
fi
|
||||
else
|
||||
if [ -d "${BACKUPDIR}" ]; then
|
||||
|
||||
@ -5,7 +5,7 @@ BACKUPFILE="/conf/rrd.tgz"
|
||||
|
||||
if [ "${1}" = "restore" ]; then
|
||||
if [ -f "${BACKUPFILE}" ]; then
|
||||
tar -C / -xzf "${BACKUPFILE}"
|
||||
tar -C / -xzpf "${BACKUPFILE}"
|
||||
fi
|
||||
else
|
||||
if [ -d "${BACKUPDIR}" ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user