Improve preflight file permissions check (#114)

* Added startup permissions check with more helpful message

* Updated README

* Fixes faulty test
This commit is contained in:
Kieran authored and GitHub committed 2024-03-24 15:06:08 -07:00
1 parent 54eacf52b3
commit a3d0927dfb
7 files changed
+131 -23

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
cd -P -- "$(dirname -- "$0")"
exec ./pinchflat eval Pinchflat.Release.check_file_permissions
+7
View File
@@ -1,4 +1,11 @@
#!/bin/sh
/app/bin/check_file_permissions
if [ $? -ne 0 ]; then
echo "Filesystem error. Exiting."
exit 1
fi
/app/bin/migrate
cd -P -- "$(dirname -- "$0")"