mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 17:27:31 +00:00
Merge pull request #2918 from ThomasWaldmann/fix-serve-exitcode
fix exitcode of borg serve, fixes #2910
This commit is contained in:
commit
a1840e9238
1 changed files with 2 additions and 1 deletions
|
@ -231,12 +231,13 @@ def build_matcher(inclexcl_patterns, include_paths):
|
||||||
|
|
||||||
def do_serve(self, args):
|
def do_serve(self, args):
|
||||||
"""Start in server mode. This command is usually not used manually."""
|
"""Start in server mode. This command is usually not used manually."""
|
||||||
return RepositoryServer(
|
RepositoryServer(
|
||||||
restrict_to_paths=args.restrict_to_paths,
|
restrict_to_paths=args.restrict_to_paths,
|
||||||
restrict_to_repositories=args.restrict_to_repositories,
|
restrict_to_repositories=args.restrict_to_repositories,
|
||||||
append_only=args.append_only,
|
append_only=args.append_only,
|
||||||
storage_quota=args.storage_quota,
|
storage_quota=args.storage_quota,
|
||||||
).serve()
|
).serve()
|
||||||
|
return EXIT_SUCCESS
|
||||||
|
|
||||||
@with_repository(create=True, exclusive=True, manifest=False)
|
@with_repository(create=True, exclusive=True, manifest=False)
|
||||||
def do_init(self, args, repository):
|
def do_init(self, args, repository):
|
||||||
|
|
Loading…
Reference in a new issue