Compare commits
2 commits
408788cac1
...
fc18eecaf4
| Author | SHA1 | Date | |
|---|---|---|---|
| fc18eecaf4 | |||
| 361f276315 |
2 changed files with 10 additions and 1 deletions
|
|
@ -282,6 +282,12 @@ if __name__ == "__main__":
|
||||||
with open('pandora/local_settings.py', 'w') as f:
|
with open('pandora/local_settings.py', 'w') as f:
|
||||||
f.write('\n'.join(local_settings))
|
f.write('\n'.join(local_settings))
|
||||||
if old <= 6313:
|
if old <= 6313:
|
||||||
|
if sys.version_info[0:2] < (3, 6):
|
||||||
|
print('Python 3.6 or late is required now, upgrade your system and run:')
|
||||||
|
print('')
|
||||||
|
print('./update.py postupdate %s %s' % (6313, new))
|
||||||
|
print('')
|
||||||
|
sys.exit(1)
|
||||||
run('./bin/pip', 'uninstall', 'django-celery', '-y')
|
run('./bin/pip', 'uninstall', 'django-celery', '-y')
|
||||||
run('./bin/pip', 'install', '-r', 'requirements.txt')
|
run('./bin/pip', 'install', '-r', 'requirements.txt')
|
||||||
if old <= 6315:
|
if old <= 6315:
|
||||||
|
|
|
||||||
|
|
@ -196,7 +196,10 @@ fi
|
||||||
# configure nginx
|
# configure nginx
|
||||||
if [ "$NGINX" == "local" ]; then
|
if [ "$NGINX" == "local" ]; then
|
||||||
|
|
||||||
cp "/srv/pandora/etc/nginx/pandora" "/etc/nginx/sites-available/default"
|
cp "/srv/pandora/etc/nginx/pandora" "/etc/nginx/sites-available/pandora"
|
||||||
|
rm /etc/nginx/sites-enabled/default
|
||||||
|
ln -s ../sites-available/pandora /etc/nginx/sites-enabled/pandora
|
||||||
|
|
||||||
read -r -d '' GZIP <<EOI
|
read -r -d '' GZIP <<EOI
|
||||||
gzip_static on;\\
|
gzip_static on;\\
|
||||||
\tgzip_http_version 1.1;\\
|
\tgzip_http_version 1.1;\\
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue