aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/30-files6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/30-files b/lib/30-files
index c7b2000..fb4bbee 100644
--- a/lib/30-files
+++ b/lib/30-files
@@ -52,6 +52,7 @@ install_file(){
while [ $# -gt 0 ]; do
_bcif_src=$(_boxconf_try_files "$1")
install -m "$_bcif_mode" $_bcif_install_args "$_bcif_src" "$1"
+ log "installed file ${1}"
shift
done
}
@@ -73,6 +74,7 @@ install_directory(){
while [ $# -gt 0 ]; do
install -m "$_bcid_mode" $_bcid_install_args "$1"
+ log "installed directory ${1}"
shift
done
}
@@ -103,6 +105,7 @@ __BOXCONF_EOF__
"
[ -s "${_bcit_src}.render" ] || bug "failed to render template: ${_bcit_src}"
install -m "$_bcit_mode" $_bcit_install_args "${_bcit_src}.render" "$1"
+ log "installed template ${1}"
shift
done
}
@@ -128,6 +131,7 @@ install_certificate(){
|| bug "no certificate exists for ${BOXCONF_HOSTNAME}/${1}"
install -m "$_bcic_mode" $_bcic_install_args "${BOXCONF_CA_DIR}/${BOXCONF_HOSTNAME}/${1}.fullchain.crt" "$2"
+ log "installed certificate ${2}"
}
install_certificate_key(){
@@ -151,6 +155,7 @@ install_certificate_key(){
|| bug "no key exists for ${BOXCONF_HOSTNAME}/${1}"
install -m "$_bcick_mode" $_bcick_install_args "${BOXCONF_CA_DIR}/${BOXCONF_HOSTNAME}/${1}.key" "$2"
+ log "installed certificate key ${2}"
}
install_ca_certificate(){
@@ -172,4 +177,5 @@ install_ca_certificate(){
[ -f "${BOXCONF_CA_DIR}/ca.crt" ] || bug 'CA certificate not found'
install -m "$_bcicc_mode" $_bcicc_install_args "${BOXCONF_CA_DIR}/ca.crt" "$1"
+ log "installed root CA to ${1}"
}