Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source file attribute gets changed #47

Closed
sorah opened this issue Jan 5, 2017 · 2 comments
Closed

source file attribute gets changed #47

sorah opened this issue Jan 5, 2017 · 2 comments

Comments

@sorah
Copy link
Contributor

sorah commented Jan 5, 2017

[alice@srv ~]$ cat > recipe.rb
remote_file '/tmp/dest.rb' do
  owner 'root'
  group 'root'
  mode  '0440'
  source './src.rb'
end
[alice@srv ~]$ cat > src.rb
aa
[alice@srv ~]$ ls -la src.rb
-rw-r--r-- 1 alice alice 3 Jan  5 13:56 src.rb
[alice@srv ~]$ sudo /opt/mitamae/bin/mitamae local recipe.rb
 INFO : Starting MItamae...
 INFO : Recipe: /home/alice/recipe.rb
 INFO :   remote_file[/tmp/dest.rb] exist will change from 'false' to 'true'
 INFO :   remote_file[/tmp/dest.rb] mode will be '0440'
 INFO :   remote_file[/tmp/dest.rb] owner will be 'root'
 INFO :   remote_file[/tmp/dest.rb] group will be 'root'
 INFO :   diff:
 INFO :   --- /dev/null 2016-12-20 21:33:33.850000000 +0000
 INFO :   +++ /home/alice/src.rb      2017-01-05 13:56:31.851855466 +0000
 INFO :   @@ -0,0 +1 @@
 INFO :   +aa
[alice@srv ~]$ ls -la src.rb
-r--r----- 1 root root 3 Jan  5 13:56 src.rb
[alice@srv ~]$ /opt/mitamae/bin/mitamae version
MItamae v1.3.2
@eagletmt
Copy link
Member

eagletmt commented Jan 5, 2017

It seems to be caused by #41 🙇

@eagletmt
Copy link
Member

Fixed in v1.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants