mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-16 19:49:56 +00:00
* Adds heuristic to detect an edge case on Linux where a system has configured logrotate as a separate service to rotate log files which would mangle our client log files. If we detect logrotate being configured for netbird, we disable our rotation. * Adds new env var to disable log rotation: NB_LOG_DISABLE_ROTATION * Adds compressed and plain logrotate files to debug bundle. * Replaces lumberjack with timberjack (maintained fork with bug fixes and extra features). * Clarifies which daemon version is running in the bundle stats. * Change logging for client service status to console
17 lines
453 B
Bash
Executable File
17 lines
453 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if ! which realpath >/dev/null 2>&1; then
|
|
echo realpath is not installed
|
|
echo run: brew install coreutils
|
|
exit 1
|
|
fi
|
|
|
|
old_pwd=$(pwd)
|
|
script_path=$(dirname "$(realpath "$0")")
|
|
cd "$script_path"
|
|
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.6
|
|
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.6.1
|
|
protoc -I ./ ./daemon.proto --go_out=../ --go-grpc_out=../ --experimental_allow_proto3_optional
|
|
cd "$old_pwd"
|