Set sensible file permissions on startup #21

This commit is contained in:
ChaoticByte 2023-02-11 23:43:17 +01:00
parent c6b358499d
commit b78e196fec

View file

@ -4,6 +4,11 @@ basedir=$(dirname "$0")
basedir=$(realpath $basedir) basedir=$(realpath $basedir)
cd "$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 PYTHONPATH="$basedir"
export DJANGO_SETTINGS_MODULE="project.settings" export DJANGO_SETTINGS_MODULE="project.settings"
export APP_VERSION="revamp-pre" export APP_VERSION="revamp-pre"