diff --git a/VERSION.txt b/VERSION.txt index 73b8a822..0d51c1de 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -0.1-e4a83e66 \ No newline at end of file +0.1-acbd1126 \ No newline at end of file diff --git a/embark/users/views.py b/embark/users/views.py index 6748c15d..08bae4a6 100644 --- a/embark/users/views.py +++ b/embark/users/views.py @@ -283,7 +283,7 @@ def activate_user(user, token) -> bool: | Q(codename="porter_permission") | Q(codename="reporter_permission") | Q(codename="dashboard_permission_minimal") - | Q(codename="dashboard_permission_advance") + | Q(codename="dashboard_permission_advanced") ) user.user_permissions.set(default_permission_set) user.save() diff --git a/run-server.sh b/run-server.sh index 0824e4af..cf50edb5 100755 --- a/run-server.sh +++ b/run-server.sh @@ -231,6 +231,10 @@ echo -e "\n[""${BLUE} JOB""${NC}""] Starting runapscheduler" pipenv run ./manage.py runapscheduler | tee -a /var/www/logs/scheduler.log & sleep 5 +# create admin superuser +echo -e "\n[""${BLUE} JOB""${NC}""] Creating Admin account" +pipenv run ./manage.py createsuperuser --noinput + echo -e "\n[""${BLUE} JOB""${NC}""] Starting Apache" pipenv run ./manage.py runmodwsgi --user www-embark --group sudo \ --host "${BIND_IP}" --port="${HTTP_PORT}" --limit-request-body "${FILE_SIZE}" \