From e99d59c0df97df453e849dea67c9ae9155d8dbfd Mon Sep 17 00:00:00 2001 From: j Date: Sat, 30 May 2020 12:37:08 +0200 Subject: [PATCH] install fixes --- pandora/system/migrations/0003_field_length.py | 10 ++++++++++ update.py | 2 +- vm/pandora_install.sh | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pandora/system/migrations/0003_field_length.py b/pandora/system/migrations/0003_field_length.py index 2381ebe7..a499f65c 100644 --- a/pandora/system/migrations/0003_field_length.py +++ b/pandora/system/migrations/0003_field_length.py @@ -11,6 +11,16 @@ class Migration(migrations.Migration): ] operations = [ + migrations.AlterField( + model_name='user', + name='password', + field=models.CharField(max_length=255, verbose_name='password'), + ), + migrations.AlterField( + model_name='user', + name='last_name', + fields=models.CharField(blank=True, max_length=30, verbose_name='last name'), + ), migrations.AlterField( model_name='user', name='email', diff --git a/update.py b/update.py index 669f0981..2c1de756 100755 --- a/update.py +++ b/update.py @@ -304,7 +304,7 @@ if __name__ == "__main__": development = branch == 'master' elif len(sys.argv) == 3 and sys.argv[1] == 'switch': branch = sys.argv[2] - development = False + development = branch == 'master' else: branch = 'master' development = True diff --git a/vm/pandora_install.sh b/vm/pandora_install.sh index 2d898c98..65d776c2 100755 --- a/vm/pandora_install.sh +++ b/vm/pandora_install.sh @@ -197,7 +197,7 @@ fi if [ "$NGINX" == "local" ]; then cp "/srv/pandora/etc/nginx/pandora" "/etc/nginx/sites-available/pandora" -rm /etc/nginx/sites-enabled/default +rm -f /etc/nginx/sites-enabled/default ln -s ../sites-available/pandora /etc/nginx/sites-enabled/pandora read -r -d '' GZIP <