Skip to content

Commit

Permalink
Fixes #9520: Sometime ppkeys is not 700
Browse files Browse the repository at this point in the history
  • Loading branch information
peckpeck committed Oct 24, 2016
1 parent 9f39c47 commit b545eef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rudder-agent/SOURCES/rudder-agent-postinst
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ fi
if [ ! -f ${CFE_DIR}/ppkeys/localhost.priv ]
then
echo -n "INFO: Creating keys for CFEngine agent..."
# The chmod is a workaround for the limitations of rpm in rhel6 but it could be useful in other situations
chmod 700 ${CFE_DIR}/ppkeys
${CFE_DIR}/bin/cf-key >> ${LOG_FILE} 2>&1
echo " Done."
fi
Expand Down
2 changes: 1 addition & 1 deletion rudder-agent/SPECS/rudder-agent.spec
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ rm -f %{_builddir}/file.list.%{name}
# existing file declared in conffiles
%ghost %{rudderdir}/etc/uuid.hive

%attr(0700, -, -) %{ruddervardir}/cfengine-community/ppkeys
%attr(0700, -, -) %dir %{ruddervardir}/cfengine-community/ppkeys
%dir %{ruddervardir}/cfengine-community/bin
%dir %{ruddervardir}/cfengine-community/inputs
%dir %{ruddervardir}/tmp
Expand Down

0 comments on commit b545eef

Please sign in to comment.