From 98eb2d458750b66d42c53499d951564581e8668a Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Thu, 25 May 2023 12:22:13 +0200 Subject: [PATCH] update log path --- release_files/darwin_pkg/postinstall | 3 ++- release_files/darwin_pkg/preinstall | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/release_files/darwin_pkg/postinstall b/release_files/darwin_pkg/postinstall index b87ef490e..3342de933 100755 --- a/release_files/darwin_pkg/postinstall +++ b/release_files/darwin_pkg/postinstall @@ -2,6 +2,7 @@ APP=/Applications/NetBird.app AGENT=/usr/local/bin/netbird +LOG_FILE=/var/log/netbird/client_install.log { echo "Installing NetBird..." @@ -28,4 +29,4 @@ AGENT=/usr/local/bin/netbird echo "Finished Netbird installation successfully" exit 0 # all good -} > /tmp/my_postinstall.log +} >> $LOG_FILE diff --git a/release_files/darwin_pkg/preinstall b/release_files/darwin_pkg/preinstall index 6e9c1d9f0..e730e277f 100755 --- a/release_files/darwin_pkg/preinstall +++ b/release_files/darwin_pkg/preinstall @@ -1,6 +1,8 @@ #!/bin/sh +LOG_FILE=/var/log/netbird/client_install.log + { echo "Preinstall complete" exit 0 # all good -} > /tmp/my_preinstall.log +} > $LOG_FILE