Ubuntu package unix lists wrong config (#1103)

* Ubuntu package unix lists wrong config
Fixes #1092

* fixes version detection in the Deb build scripts
This commit is contained in:
James Hodgkinson 2022-10-10 08:59:14 +10:00 committed by GitHub
parent ada9eb785a
commit 3ca622e5f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -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
;;

View file

@ -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}/