32 lines
1.2 KiB
Bash
Executable File
32 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# django project settings
|
|
export user=""
|
|
export projectname=""
|
|
export hostname=""
|
|
export usegit=False # if you have a django git project
|
|
export giturl="" # url for git project
|
|
export gitkey="" # IdentityFile
|
|
|
|
# general install settings
|
|
export logdir="/var/log/djangosetup/"
|
|
export aptlogloc=$logdir"apt.log"
|
|
export aptlogmsg="See $aptlogloc for more info."
|
|
export firelogloc=$logdir"firewall.log"
|
|
export firelogmsg="See $firelogloc for more info."
|
|
export pylogloc=$logdir"python.log"
|
|
export pylogmsg="See $pylogloc for more info."
|
|
export djalogloc=$logdir"django.log"
|
|
export djamsg="See $djalogloc for more info."
|
|
export gunicornlogloc=$logdir"gunicorn.log"
|
|
export nginxlogloc=$logdir"nginx.log"
|
|
export gitlogloc=$logdir"git.log"
|
|
export gitlogmsg="See $gitlogloc for more info."
|
|
|
|
# python settings
|
|
export pylink="https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz"
|
|
export sqlink="https://sqlite.org/2019/sqlite-autoconf-3280000.tar.gz"
|
|
export pyinstalldir="/usr/src/python37"
|
|
|
|
# don't change this by hand
|
|
export packages=(gcc wget nginx make bzip2 openssl libffi-dev libssl-dev libsqlite3-dev zlib1g-dev libbz2-dev libpq-dev); |