From fcfc6adcf48d28a30f82a74df3dbbbdf92e29743 Mon Sep 17 00:00:00 2001 From: Mark Henderson Date: Mon, 28 Aug 2023 10:55:31 +0930 Subject: [PATCH] Use cmp instead of just -f --- templates/configure_install_runner.sh.epp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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