Skip to content

Commit 4ba9cfe

Browse files
davejrtflorindragos
authored andcommitted
changing permissions to remove systemd warning (#440)
1 parent 1cc4296 commit 4ba9cfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifests/run.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@
334334
$stopscript = "/usr/local/bin/docker-run-${sanitised_title}-stop.sh"
335335
$startstop_template = 'docker/usr/local/bin/docker-run.sh.epp'
336336
$init_template = 'docker/etc/systemd/system/docker-run.erb'
337-
$mode = '0640'
337+
$mode = '0644'
338338
}
339339
'upstart': {
340340
$initscript = "/etc/init.d/${service_prefix}${sanitised_title}"

spec/defines/run_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
let(:params) { {'command' => 'command', 'image' => 'base'} }
4545
it { should compile.with_all_deps }
4646
it { should contain_service('docker-sample') }
47-
it { should contain_file(initscript).with_content(/#{Regexp.escape(startscript)}/) }
47+
it { should contain_file(initscript).with_content(/#{Regexp.escape(startscript)}/).with_mode('0644') }
4848
it { should contain_file(initscript).with_content(/#{Regexp.escape(stopscript)}/) }
4949
it { should contain_file(startscript_or_init).with_content(/docker start/).with_content(/command/).with_content(/base/)}
5050

0 commit comments

Comments
 (0)