Commit 052745d3 authored by Franco Fichtner's avatar Franco Fichtner

rc: create dirname directory by @QuentinC for #1437

parent d2be8ec9
......@@ -5,6 +5,7 @@ BACKUPDB="/var/captiveportal/captiveportal.sqlite"
if [ "${1}" = "restore" ]; then
if [ -f "${BACKUPFILE}" ]; then
mkdir -p "$(dirname ${BACKUPDB})"
cp "${BACKUPFILE}" "${BACKUPDB}"
fi
else
......
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