Skip to content

Commit

Permalink
Merge branch 'bug_9520/sometime_ppkeys_is_not_700_pr' into branches/r…
Browse files Browse the repository at this point in the history
…udder/4.0
  • Loading branch information
Normation GIT merger committed Oct 24, 2016
2 parents 7adddcc + b545eef commit c334d29
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
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
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 c334d29

Please sign in to comment.