aports/testing/barman/barman.pre-install
Andrés Maldonado 6a84f7aeee Use /var/lib/barman as home
This will create /var/lib/barman and set correct permissions.

The default config file states 'barman_home = /var/lib/barman'. If this
directory doesn't exist, there will be errors at runtime, for example:

  / # barman cron
  ERROR: [Errno 2] No such file or directory:
  '/var/lib/barman/.streaming-pg-cron.lock'
2022-01-14 08:24:14 +00:00

4 lines
136 B
Bash
Executable file

#!/bin/sh
addgroup -S barman 2>/dev/null
adduser -SD -h /var/lib/barman/ -s /sbin/nologin -G barman -g barman barman 2>/dev/null
exit 0