Skip to content

Commit

Permalink
Merge pull request #235 from barkingfoodog/move-chown-recursive-option
Browse files Browse the repository at this point in the history
Move the -R option for chown to precede the user:group
  • Loading branch information
gtmanfred authored May 15, 2018
2 parents 2ae2485 + ae0c732 commit a7f0a64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/kitchen/provisioner/dependencies.erb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def install_dependencies
end
script += <<-INSTALL
linkFormulas "$SALT_ROOT"
chown "${SUDO_USER:-$USER}" -R "${SALT_SHARE_DIR}" "${SALT_ROOT}";
chown -R "${SUDO_USER:-$USER}" "${SALT_SHARE_DIR}" "${SALT_ROOT}";
echo "Content of $SALT_ROOT :";
ls -la "$SALT_ROOT";
INSTALL
Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen/provisioner/salt_solo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def prepare_command
cmd = ''
unless windows_os?
cmd += <<-CHOWN
#{sudo('chown')} "${SUDO_USER:-$USER}" -R "#{config[:root_path]}/#{config[:salt_file_root]}"
#{sudo('chown')} -R "${SUDO_USER:-$USER}" "#{config[:root_path]}/#{config[:salt_file_root]}"
CHOWN
end
if config[:prepare_salt_environment]
Expand Down

0 comments on commit a7f0a64

Please sign in to comment.