1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-12-01 22:30:09 +02:00

Add perl-bin option to specify the Perl binary location when /usr/bin/env perl won't work.

This commit is contained in:
David Steele
2018-01-16 13:23:08 -05:00
parent d633417e5d
commit bffc6c49b3
16 changed files with 137 additions and 3 deletions

View File

@@ -185,6 +185,8 @@ use constant CFGOPT_SPOOL_PATH => 'spool-pa
push @EXPORT, qw(CFGOPT_SPOOL_PATH);
# Perl
use constant CFGOPT_PERL_BIN => 'perl-bin';
push @EXPORT, qw(CFGOPT_PERL_BIN);
use constant CFGOPT_PERL_OPTION => 'perl-option';
push @EXPORT, qw(CFGOPT_PERL_OPTION);
@@ -1071,6 +1073,29 @@ my %hConfigDefine =
},
},
&CFGOPT_PERL_BIN =>
{
&CFGDEF_SECTION => CFGDEF_SECTION_GLOBAL,
&CFGDEF_TYPE => CFGDEF_TYPE_STRING,
&CFGDEF_REQUIRED => false,
&CFGDEF_COMMAND =>
{
&CFGCMD_ARCHIVE_GET => {},
&CFGCMD_ARCHIVE_PUSH => {},
&CFGCMD_BACKUP => {},
&CFGCMD_CHECK => {},
&CFGCMD_EXPIRE => {},
&CFGCMD_INFO => {},
&CFGCMD_LOCAL => {},
&CFGCMD_REMOTE => {},
&CFGCMD_RESTORE => {},
&CFGCMD_STANZA_CREATE => {},
&CFGCMD_STANZA_UPGRADE => {},
&CFGCMD_START => {},
&CFGCMD_STOP => {},
},
},
&CFGOPT_PERL_OPTION =>
{
&CFGDEF_SECTION => CFGDEF_SECTION_GLOBAL,