diff --git a/pandora/system/migrations/0003_field_length.py b/pandora/system/migrations/0003_field_length.py index 2381ebe70..a499f65cf 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 669f0981f..2c1de7564 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 2d898c983..65d776c2b 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 <