From b78e196fec59238e270e2e131ccd4fc524a0236e Mon Sep 17 00:00:00 2001 From: ChaoticByte <9070224-ChaoticByte@users.noreply.gitlab.com> Date: Sat, 11 Feb 2023 23:43:17 +0100 Subject: [PATCH] Set sensible file permissions on startup #21 --- start.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/start.sh b/start.sh index a51c876..fdca992 100755 --- a/start.sh +++ b/start.sh @@ -4,6 +4,11 @@ basedir=$(dirname "$0") basedir=$(realpath $basedir) cd "$basedir" +# Set file permissions +chmod -c -R g-w,o-rwx * +chmod -c -R g-w,o-rwx .git/ +chmod -c -R g-w,o-rwx .gitignore + export PYTHONPATH="$basedir" export DJANGO_SETTINGS_MODULE="project.settings" export APP_VERSION="revamp-pre"