Commit 2c2192d7 authored by Franco Fichtner's avatar Franco Fichtner

rc: explicitly use `-p' , it should be set but can't go wrong here

PR: https://github.com/opnsense/core/issues/1077
parent a89858db
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment