[Ovirt-devel] [PATCH server] setup symlink on rpm install based on version of installed ovirt-docs
Jason Guiditta
jguiditt at redhat.com
Wed Oct 15 03:40:13 UTC 2008
On Tue, 2008-10-14 at 23:08 -0400, Perry Myers wrote:
> Signed-off-by: Perry Myers <pmyers at redhat.com>
> ---
> ovirt-server.spec.in | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/ovirt-server.spec.in b/ovirt-server.spec.in
> index 1339b52..71fa2a1 100644
> --- a/ovirt-server.spec.in
> +++ b/ovirt-server.spec.in
> @@ -31,6 +31,7 @@ Requires: ruby-libvirt >= 0.0.2
> Requires: rrdtool-ruby
> Requires: iscsi-initiator-utils
> Requires: cyrus-sasl-gssapi
> +Requires: ovirt-docs
> Requires(post): /sbin/chkconfig
> Requires(preun): /sbin/chkconfig
> Requires(preun): /sbin/service
> @@ -146,6 +147,11 @@ fi
> %daemon_chkconfig_post -d ovirt-mongrel-rails
> %daemon_chkconfig_post -d ovirt-taskomatic
>
> +# Set up the symlink for ovirt-docs so that online help works
> +docs_dir=$(rpm -q --queryformat '/usr/share/doc/%{NAME}-%{VERSION}' ovirt-docs)
> +%{__rm} /usr/share/ovirt-server/public/help
> +%{__ln_s} $docs_dir/Using_the_oVirt_Server_Suite_User_Interface/ %{app_root}/public/help
> +
> %preun
> if [ "$1" = 0 ] ; then
> /sbin/service ovirt-host-browser stop > /dev/null 2>&1
ACK, this links properly to the new ovirt-docs dir for me, and I can
view the help page by clicking the icon in the web app.
-j
More information about the ovirt-devel
mailing list