diff options
Diffstat (limited to 'bin-utils/consul-template-bin/INSTALL')
-rwxr-xr-x | bin-utils/consul-template-bin/INSTALL | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bin-utils/consul-template-bin/INSTALL b/bin-utils/consul-template-bin/INSTALL new file mode 100755 index 0000000..371d6e4 --- /dev/null +++ b/bin-utils/consul-template-bin/INSTALL @@ -0,0 +1,14 @@ +# /usr/bin is handled by smgl-fhs +install -vm 755 consul-template "${INSTALL_ROOT}/usr/bin" && + +local config_dir="${INSTALL_ROOT}/etc/${SPELLX}.d" && + +if [ ! -d "${config_dir}" ]; then + install -vm 750 -o root -g consul-template -d "${config_dir}" +fi && + +install_config_file "${SPELL_DIRECTORY}/files/default.conf" \ + "${config_dir}/default.conf" && + +chown root:consul-template "${config_dir}/default.conf" && +chmod 0640 "${config_dir}/default.conf" |