mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
rc: silence tar's leading slash removal warning
This commit is contained in:
parent
89c7a39f53
commit
259eb3808e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user