Set sensible file permissions on startup #21
This commit is contained in:
parent
c6b358499d
commit
b78e196fec
1 changed files with 5 additions and 0 deletions
5
start.sh
5
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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue