Paul,
The error is only in the output message, see the attached patch.
Jean-Louis
Paul Bijnens wrote:
Instead of compiling from sources, as I did up to now, I tried the
rpm from zmanda on a new host I'm preparing.
Downloaded: amanda-backup_client-2.6.0p1-1.rhel5.i386.rpm
When installing, I got these lines:
...
May 26 2008 16:55:46: The directory '/var/lib/amanda/.gnupg' created
successfully.
May 26 2008 16:55:46: Ensuring correct permissions for '/etc/.gnupg'.
May 26 2008 16:55:46: '/var/lib/amanda/.gnupg' Installation successful.
...
The middle line, mentioning "/etc/.gnupg", is, I suppose, not correct.
Minor error, as it's only the message. The permissions of the directory
'/var/lib/amanda/.gnupg' are correct after installing, AFAIK.
Index: packaging/rpm/amanda.spec
===================================================================
--- packaging/rpm/amanda.spec (revision 1046)
+++ packaging/rpm/amanda.spec (working copy)
@@ -649,7 +649,7 @@
fi
fi
if [ ${ret_val} -eq 0 ]; then
- echo "`date +'%b %e %Y %T'`: Ensuring correct permissions for
'%{SYSCONFDIR}/.gnupg'." >>${TMPFILE}
+ echo "`date +'%b %e %Y %T'`: Ensuring correct permissions for
'%{AMANDAHOMEDIR}/.gnupg'." >>${TMPFILE}
chown %{amanda_user}:%{amanda_group} %{AMANDAHOMEDIR}/.gnupg
>>${TMPFILE} 2>&1
ret_val=$?
if [ ${ret_val} -eq 0 ]; then
@@ -1052,7 +1052,7 @@
fi
fi
if [ ${ret_val} -eq 0 ]; then
- echo "`date +'%b %e %Y %T'`: Ensuring correct permissions for
'%{SYSCONFDIR}/.gnupg'." >>${TMPFILE}
+ echo "`date +'%b %e %Y %T'`: Ensuring correct permissions for
'%{AMANDAHOMEDIR}/.gnupg'." >>${TMPFILE}
chown %{amanda_user}:%{amanda_group} %{AMANDAHOMEDIR}/.gnupg
>>${TMPFILE} 2>&1
ret_val=$?
if [ ${ret_val} -eq 0 ]; then
@@ -1419,7 +1419,7 @@
fi
fi
if [ ${ret_val} -eq 0 ]; then
- echo "`date +'%b %e %Y %T'`: Ensuring correct permissions for
'%{SYSCONFDIR}/.gnupg'." >>${TMPFILE}
+ echo "`date +'%b %e %Y %T'`: Ensuring correct permissions for
'%{AMANDAHOMEDIR}/.gnupg'." >>${TMPFILE}
chown %{amanda_user}:%{amanda_group} %{AMANDAHOMEDIR}/.gnupg
>>${TMPFILE} 2>&1
ret_val=$?
if [ ${ret_val} -eq 0 ]; then
|