diff --git a/templates/configure_install_runner.sh.epp b/templates/configure_install_runner.sh.epp index bc5abe2..a3040cb 100644 --- a/templates/configure_install_runner.sh.epp +++ b/templates/configure_install_runner.sh.epp @@ -39,7 +39,7 @@ export RUNNER_ALLOW_RUNASROOT=true <%= $assured_labels %> &>/dev/null # Copy service endpoint script. -if [ ! -f <%= $root_dir %>/<%= $instance_name %>/runsvc.sh ]; then +if ! cmp --silent runsvc.sh <%= $root_dir %>/<%= $instance_name %>/bin/runsvc.sh <%= $root_dir %>/<%= $instance_name %>/runsvc.sh; then cp <%= $root_dir %>/<%= $instance_name %>/bin/runsvc.sh <%= $root_dir %>/<%= $instance_name %>/runsvc.sh chmod 755 <%= $root_dir %>/<%= $instance_name %>/runsvc.sh fi