Skip to content

Commit

Permalink
CBSP-2466: Fix SFTP changes for CentOS (#125)
Browse files Browse the repository at this point in the history
The UsrMove project (https://fedoraproject.org/wiki/Features/UsrMove)
has seen /bin, /sbin/, etc. merge into /usr/, then become symlinks to
those directories.

This means that CentOS 6 and 7 both have a /bin/sed and an /sbin/service,
but only CentOS 7 has the equivalents under /usr, so this change will
suffice for now.
  • Loading branch information
malarky committed Jul 18, 2019
1 parent 3fd707d commit 9bb1a1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions puppet.pp
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@
notice("Fixing SFTP for ${operatingsystem} ${operatingsystemrelease}")
exec { 'Fix SFTP':
command => "sed -i 's|/usr/lib/openssh/sftp-server|internal-sftp|g' /etc/ssh/sshd_config",
path => "/usr/bin"
path => "/bin"
}
exec { "service sshd reload":
require => Exec['Fix SFTP'],
path => "/usr/sbin"
path => "/sbin"
}

# Install pkgconfig (not all CentOS base boxes have it).
Expand Down

0 comments on commit 9bb1a1d

Please sign in to comment.