Commit 259eb380 authored by Franco Fichtner's avatar Franco Fichtner

rc: silence tar's leading slash removal warning

parent 89c7a39f
......@@ -9,6 +9,6 @@ if [ "${1}" = "restore" ]; then
fi
else
if [ -d "${BACKUPDIR}" ]; then
tar -C / -czf "${BACKUPFILE}" "${BACKUPDIR}"
tar -C / -czf "${BACKUPFILE}" ."${BACKUPDIR}"
fi
fi
......@@ -10,7 +10,7 @@ if [ "${1}" = "restore" ]; then
else
if [ -d "${BACKUPDIR}" ]; then
/usr/local/etc/rc.d/flowd_aggregate stop
tar -C / -czf "${BACKUPFILE}" "${BACKUPDIR}"
tar -C / -czf "${BACKUPFILE}" ."${BACKUPDIR}"
if [ "${1}" != "stop" ]; then
/usr/local/etc/rc.d/flowd_aggregate start
fi
......
......@@ -9,6 +9,6 @@ if [ "${1}" = "restore" ]; then
fi
else
if [ -d "${BACKUPDIR}" ]; then
tar -C / -czf "${BACKUPFILE}" "${BACKUPDIR}"
tar -C / -czf "${BACKUPFILE}" ."${BACKUPDIR}"
fi
fi
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