diff --git a/platform/debian/build_kanidm.sh b/platform/debian/build_kanidm.sh index 6927efa0d..5460b50ed 100755 --- a/platform/debian/build_kanidm.sh +++ b/platform/debian/build_kanidm.sh @@ -46,8 +46,8 @@ if [ "$(which cargo | wc -l)" -eq 0 ]; then fi fi -# this assumes the versions are in lock-step, which is fine at the moment.s -KANIDM_VERSION="$(grep -ioE 'version.*' kanidm_tools/Cargo.toml | head -n1 | awk '{print $NF}' | tr -d '"')" +# this assumes the versions are in lock-step, which is fine at the moment. +KANIDM_VERSION="$(grep -ioE 'version.*' Cargo.toml | head -n1 | awk '{print $NF}' | tr -d '"')" # if we're in a github action, then it's easy to get the commit if [ -n "${GITHUB_SHA}" ]; then diff --git a/platform/debian/kanidm-unixd/postinst b/platform/debian/kanidm-unixd/postinst index f179be4d5..d78b483ae 100644 --- a/platform/debian/kanidm-unixd/postinst +++ b/platform/debian/kanidm-unixd/postinst @@ -12,8 +12,8 @@ case "$1" in echo "=============================" echo "Thanks for installing Kanidm!" echo "=============================" - echo "Please ensure you create a configuration file at /etc/kanidm/config" - echo "An example is in /usr/share/kanidm-unixd/" + echo "Please ensure you create configuration files at /etc/kanidm/unixd and /etc/kanidm/config" + echo "Examples are in /usr/share/kanidm-unixd/" fi ;; diff --git a/platform/debian/kanidm-unixd/rules b/platform/debian/kanidm-unixd/rules index b763f9a25..2a0f753ec 100755 --- a/platform/debian/kanidm-unixd/rules +++ b/platform/debian/kanidm-unixd/rules @@ -55,3 +55,7 @@ override_dh_installexamples: -g root -o root \ examples/kanidm \ ${SHARED_DIR}/ + install -D \ + -g root -o root \ + examples/config \ + ${SHARED_DIR}/