-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/bash | ||
docker-compose -f docker-compose.local.yml run --rm zaak-gateway python manage.py shell -c " | ||
docker compose -f docker-compose.local.yml run --rm zaak-gateway python manage.py shell -c " | ||
from django.contrib.auth import get_user_model | ||
get_user_model().objects.get_or_create(email='[email protected]', first_name='local', last_name='user')" | ||
|
||
docker-compose -f docker-compose.local.yml run --rm zaak-gateway python manage.py shell -c " | ||
docker compose -f docker-compose.local.yml run --rm zaak-gateway python manage.py shell -c " | ||
from apps.users.models import User, UserGroup | ||
from django.contrib.auth.models import Permission | ||
(group, _) = UserGroup.objects.get_or_create(name='PROJECTHANDHAVER', display_name='Projecthandhaver') | ||
|
@@ -14,7 +14,7 @@ group.permissions.add(Permission.objects.get(name='Can read gevoelige dossiers') | |
user = User.objects.get(email='[email protected]') | ||
user.groups.add(group)" | ||
|
||
docker-compose -f docker-compose.local.yml run --rm zaak-gateway python manage.py shell -c " | ||
docker compose -f docker-compose.local.yml run --rm zaak-gateway python manage.py shell -c " | ||
from django_celery_beat.models import PeriodicTask, IntervalSchedule | ||
schedule, created = IntervalSchedule.objects.get_or_create(every=10, period=IntervalSchedule.SECONDS) | ||
PeriodicTask.objects.get_or_create(interval=schedule, name='Update workflows', task='apps.workflow.tasks.task_update_workflows')" |