mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-20 01:38:41 +02:00
revert log writing
This commit is contained in:
parent
b3027603df
commit
4eec29a639
@ -4,21 +4,21 @@ APP=/Applications/NetBird.app
|
|||||||
AGENT=/usr/local/bin/netbird
|
AGENT=/usr/local/bin/netbird
|
||||||
LOG_FILE=/var/log/netbird/client_install.log
|
LOG_FILE=/var/log/netbird/client_install.log
|
||||||
|
|
||||||
{
|
|
||||||
echo "Installing NetBird..."
|
echo "Installing NetBird..." &>> $LOG_FILE
|
||||||
|
|
||||||
if test -d $APP; then
|
if test -d $APP; then
|
||||||
echo "NetBird app copied successfully."
|
echo "NetBird app copied successfully." &>> $LOG_FILE
|
||||||
else
|
else
|
||||||
echo "NetBird app could not be copied to the Applications folder."
|
echo "NetBird app could not be copied to the Applications folder." &>> $LOG_FILE
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -s $APP/Contents/MacOS/netbird $AGENT
|
ln -s $APP/Contents/MacOS/netbird $AGENT
|
||||||
if test -f $AGENT; then
|
if test -f $AGENT; then
|
||||||
echo "NetBird binary linked successfully."
|
echo "NetBird binary linked successfully." &>> $LOG_FILE
|
||||||
else
|
else
|
||||||
echo "NetBird could not create symlink to /usr/local/bin"
|
echo "NetBird could not create symlink to /usr/local/bin" &>> $LOG_FILE
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -27,6 +27,5 @@ LOG_FILE=/var/log/netbird/client_install.log
|
|||||||
|
|
||||||
open $APP
|
open $APP
|
||||||
|
|
||||||
echo "Finished Netbird installation successfully"
|
echo "Finished Netbird installation successfully" &>> $LOG_FILE
|
||||||
exit 0 # all good
|
exit 0 # all good
|
||||||
} &>> $LOG_FILE
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
LOG_FILE=/var/log/netbird/client_install.log
|
LOG_FILE=/var/log/netbird/client_install.log
|
||||||
|
|
||||||
{
|
echo "Start installation..." &> $LOG_FILE
|
||||||
echo "Preinstall complete"
|
echo "Preinstall complete" &>> $LOG_FILE
|
||||||
exit 0 # all good
|
exit 0 # all good
|
||||||
} &> $LOG_FILE
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user