File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 355
355
if $title != ' default' {
356
356
$real_service_ensure = $service_ensure == ' running'
357
357
$real_service_enable = $service_enable
358
-
359
- Exec[" cp -p ${redis_file_name_orig} ${redis_file_name} " ] ~> Service[" ${service_name} .service" ]
360
358
} else {
361
359
$real_service_ensure = undef
362
360
$real_service_enable = undef
496
494
),
497
495
}
498
496
499
- exec { "cp -p ${redis_file_name_orig} ${redis_file_name}" :
500
- path => ' /usr/bin:/bin' ,
501
- subscribe => File [$redis_file_name_orig ],
502
- refreshonly => true ,
497
+ if $redis_file_name_orig != $redis_file_name {
498
+ exec { "cp -p ${redis_file_name_orig} ${redis_file_name}" :
499
+ path => ' /usr/bin:/bin' ,
500
+ subscribe => File [$redis_file_name_orig ],
501
+ refreshonly => true ,
502
+ }
503
+
504
+ if $title != ' default' and $manage_service_file {
505
+ Exec[" cp -p ${redis_file_name_orig} ${redis_file_name} " ] ~> Service[" ${service_name} .service" ]
506
+ }
503
507
}
504
508
}
You can’t perform that action at this time.
0 commit comments