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:
Franco Fichtner 2016-10-29 10:18:45 +02:00
parent a89858db9d
commit 2c2192d70d
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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