mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-24 15:12:00 +00:00
do not check python/libc for borg serve, fixes #4483
This is a forward port of 24118459c6
the check checks whether follow_symlinks=False is supported, which
requires that the glibc is recent enough / python was compiled
for a recent enough glibc. follow_symlinks=False is only used for borg
create and extract, but not needed for borg serve.
thus, this makes it possible to run "borg serve" even on a bit older
servers. be careful, due to the presence of this check on the server
side until now, older server systems are not really much tested.
This commit is contained in:
parent
8825bd961b
commit
d9a1761d0e
1 changed files with 5 additions and 3 deletions
|
@ -4243,7 +4243,9 @@ def parse_args(self, args=None):
|
||||||
parser.error('Need at least one PATH argument.')
|
parser.error('Need at least one PATH argument.')
|
||||||
return args
|
return args
|
||||||
|
|
||||||
def prerun_checks(self, logger):
|
def prerun_checks(self, logger, is_serve):
|
||||||
|
if not is_serve:
|
||||||
|
# this is the borg *client*, we need to check the python:
|
||||||
check_python()
|
check_python()
|
||||||
check_extension_modules()
|
check_extension_modules()
|
||||||
selftest(logger)
|
selftest(logger)
|
||||||
|
@ -4286,7 +4288,7 @@ def run(self, args):
|
||||||
return self.exit_code
|
return self.exit_code
|
||||||
if args.show_version:
|
if args.show_version:
|
||||||
logging.getLogger('borg.output.show-version').info('borgbackup version %s' % __version__)
|
logging.getLogger('borg.output.show-version').info('borgbackup version %s' % __version__)
|
||||||
self.prerun_checks(logger)
|
self.prerun_checks(logger, is_serve)
|
||||||
if not is_supported_msgpack():
|
if not is_supported_msgpack():
|
||||||
logger.error("You do not have a supported version of the msgpack python package installed. Terminating.")
|
logger.error("You do not have a supported version of the msgpack python package installed. Terminating.")
|
||||||
logger.error("This should never happen as specific, supported versions are required by our setup.py.")
|
logger.error("This should never happen as specific, supported versions are required by our setup.py.")
|
||||||
|
|
Loading…
Reference in a new issue