Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Use cmp instead of just -f for runsvc.sh #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/configure_install_runner.sh.epp
Original file line number Diff line number Diff line change
Expand Up @@ -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