kea-admin alpine 3.11 wrong admin-utils.sh and scripts path / packaging error
Describe the bug
On the alpine linux (v3.11) latest stable version (1.8.2) distributed via Cloudsmith the path to the database scripts and the admin-utils.sh
file are wrong. According to the script the path of these files should be under /usr/share/kea/scripts
but the package has these files actually located under /usr/share/kea/kea/scripts
. This looks to be a packaging error. the package for alpine 3.10 is correct, but for alpine 3.11 it is not.
the contents of the isc-kea-admin package can be seen without installing here: https://cloudsmith.io/~isc/repos/kea-1-8/packages/detail/alpine/isc-kea-admin/1.8.2-risc0001520201206093433/a=noarch;d=alpine%252Fv3.11/#files
To Reproduce
Steps to reproduce the behavior:
- On alpine linux version 3.11, install the repository
- Install
isc-kea-admin
- Run
kea-admin
to read or modify a database - See an error: (this is the error when trying to initialize a mysql database, but this issue will be present for almost any command as
admin-utils.sh
is not included properly)
/usr/sbin/kea-admin: line 218: mysql_execute: not found
ERROR/kea-admin: mysql_init table query failed, mysql status = 127
Environment:
- Kea version: 1.8.2
- OS: alpine linux v3.11 (amd64 / x86_64)
- installed from official cloudsmith repository
Workaround
mv /usr/share/kea/kea/* /usr/share/kea/
Edited by Jordie