netbird
netbird copied to clipboard
Installation script fails on Alpine due to date syntax
Is your feature request related to a problem? Please describe.
Installing on an Alpine system, the installation script will fail unless the GNU version of date (in the coreutils package) is installed. Otherwise it uses busybox's implementation, which doesn't understand the -d "+30 minutes" argument.
Describe the solution you'd like
I'd suggest to check date is not a symlink to busybox while checking the requirements and to point the user to installing coreutils when it is.
Additional context
Steps to reproduce the behavior:
- Run a fresh install of Alpine, e.g.
docker run --rm -it alpine - Follow the install instructions, e.g.
export NETBIRD_DOMAIN=netbird.example.com; curl -fsSL https://github.com/netbirdio/netbird/releases/latest/download/getting-started-with-zitadel.sh | bash
@outlyer-net any idea if this is still an issue with latest NetBird version?
Hi, I've just tried to install netbird on alpine using the docker guide and it fails with the following:
alpine:/apps/netbird$ export NETBIRD_DOMAIN=netbird.domain.com; curl -fsSL https:/
/github.com/netbirdio/netbird/releases/latest/download/getting-started-with-zita
del.sh | bash
date: invalid date '+30 minutes'
After installing the coreutils package as mentionated it works:
sudo apk add coreutils