Project

General

Profile

« Previous | Next » 

Revision d7013c9d

Added by Ewoud Kohl van Wijngaarden about 6 years ago

Handle .ssh symlinks in REX SSH

Similar to 796febe4203eb87f03f24a4d6a223093a1f2f786. test -d deferences
symlinks so we explicitly need to check if it's not a symlink.

View differences:

packages/plugins/rubygem-smart_proxy_remote_execution_ssh/rubygem-smart_proxy_remote_execution_ssh.spec
Summary: SSH remote execution provider for Foreman smart proxy
Name: rubygem-%{gem_name}
Version: 0.2.0
Release: 1%{?dist}
Release: 2%{?dist}
Group: Applications/System
License: GPLv3
URL: https://github.com/theforeman/smart_proxy_remote_execution_ssh
......
%build
%pre
if [ -d %{foreman_proxy_dir}/.ssh ]; then
if [ -d %{foreman_proxy_dir}/.ssh ] && [ ! -L %{foreman_proxy_dir}/.ssh ] ; then
mv %{foreman_proxy_dir}/.ssh %{foreman_proxy_statedir}/ssh
fi
......
%doc %{gem_docdir}
%changelog
* Tue May 29 2018 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 0.2.0-2
- Handle .ssh symlinks
* Fri Apr 06 2018 Adam Ruzicka <aruzicka@redhat.com> 0.2.0-1
- Update to 0.2.0

Also available in: Unified diff