From dada50ee26e3891ebfca73e12a8f14080cc8ad7e Mon Sep 17 00:00:00 2001 From: David Steele Date: Wed, 30 Jan 2019 13:39:22 +0200 Subject: [PATCH] Fix hard-coded repository path. This prevented packages from being passed to the documentation unless they were in the /backrest directory on the host. Also make the local path /pgbackrest instead of the deprecated /backrest. Reported by Heath Lord. --- doc/xml/release.xml | 15 +++++++++++++++ doc/xml/user-guide.xml | 16 +++++++++------- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/doc/xml/release.xml b/doc/xml/release.xml index b565ac345..bd24567b0 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -148,6 +148,16 @@ + + + + + + +

Fix hard-coded repository path.

+
+
+ @@ -6259,6 +6269,11 @@ gregscds + + Heath Lord + crunchyheath + + Ibrahim Edib Kokdemir Edib diff --git a/doc/xml/user-guide.xml b/doc/xml/user-guide.xml index a67661d74..e1b55aa73 100644 --- a/doc/xml/user-guide.xml +++ b/doc/xml/user-guide.xml @@ -35,13 +35,15 @@ RHEL/CentOS 6 RHEL/CentOS 7 - + use File::Basename qw(dirname); use Cwd qw(abs_path); dirname(dirname(abs_path($0))); + /pgbackrest + 9.4 9.5 95 @@ -119,7 +121,7 @@ -v /sys/fs/cgroup:/sys/fs/cgroup:rw -v /tmp/$(mktemp -d):/run use English; getpwuid($UID) eq 'root' ? 'vagrant' : getpwuid($UID) . '' - {[pgbackrest-path]}:/backrest + {[pgbackrest-host-repo-path]}:{[pgbackrest-repo-path]} pgbackrest/test s3 @@ -469,7 +471,7 @@ Install <backrest/> from package - dpkg -i {[pgbackrest-path]}/{[package]} + dpkg -i {[pgbackrest-repo-path]}/{[package]} 2>&1 @@ -483,7 +485,7 @@ - yum -y install {[pgbackrest-path]}/{[package]} + yum -y install {[pgbackrest-repo-path]}/{[package]} -y 2>&1 @@ -643,10 +645,10 @@ mkdir /root/pgbackrest-release-{[version]} - cp -r /backrest/libc /root/pgbackrest-release-{[version]} + cp -r {[pgbackrest-repo-path]}/libc /root/pgbackrest-release-{[version]} - cp -r /backrest/src /root/pgbackrest-release-{[version]} + cp -r {[pgbackrest-repo-path]}/src /root/pgbackrest-release-{[version]} @@ -1301,7 +1303,7 @@ - cp -r /backrest/doc/example/* + cp -r {[pgbackrest-repo-path]}/doc/example/* {[pg-home-path]}/pgbackrest/doc/example