initial commit

This commit is contained in:
Johannes Erwerle 2026-04-04 15:07:37 +02:00
commit 164fa61ad2
40 changed files with 1263 additions and 0 deletions

View file

@ -0,0 +1,17 @@
from django.core.management.base import BaseCommand, CommandError
from ...models import BorgRepository
from ...deployments import sync_users
class Command(BaseCommand):
help = "Synchronized users on the host with the database."
def handle(self, *args, **options):
repos = BorgRepository.objects.all()
for repo in repos:
self.stdout.write(f"{repo}")
self.stdout.write(self.style.SUCCESS("This is a test"))
sync_users(dry_run=False)