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