Skip to content
Snippets Groups Projects
Commit fcfe5f2e authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

set permission 700 on backup target dir

parent 5db6976a
No related branches found
No related tags found
1 merge request!1557771 harden postgres backup
......@@ -129,6 +129,10 @@
color.echo "error" "FATAL ERROR: directory ${BACKUP_TARGETDIR} was not created"
exit 1
fi
if ! chmod 0700 "${BACKUP_TARGETDIR}"; then
color.echo "error" "FATAL ERROR: permissions could not be set for ${BACKUP_TARGETDIR}."
exit 1
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment