netbird icon indicating copy to clipboard operation
netbird copied to clipboard

Installation script fails on Alpine due to date syntax

Open outlyer-net opened this issue 1 year ago • 2 comments

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:

  1. Run a fresh install of Alpine, e.g.
    docker run --rm -it alpine
    
  2. 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 avatar May 12 '24 14:05 outlyer-net

@outlyer-net any idea if this is still an issue with latest NetBird version?

nazarewk avatar Apr 23 '25 14:04 nazarewk

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

Hylosium avatar May 28 '25 08:05 Hylosium