mirror of
https://github.com/netbirdio/netbird.git
synced 2025-02-18 03:01:31 +01:00
revert logs writing
This commit is contained in:
parent
4eec29a639
commit
489be203fc
@ -4,28 +4,29 @@ 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
|
||||||
|
echo "NetBird app copied successfully."
|
||||||
|
else
|
||||||
|
echo "NetBird app could not be copied to the Applications folder."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if test -d $APP; then
|
ln -s $APP/Contents/MacOS/netbird $AGENT
|
||||||
echo "NetBird app copied successfully." &>> $LOG_FILE
|
if test -f $AGENT; then
|
||||||
else
|
echo "NetBird binary linked successfully."
|
||||||
echo "NetBird app could not be copied to the Applications folder." &>> $LOG_FILE
|
else
|
||||||
exit 1
|
echo "NetBird could not create symlink to /usr/local/bin"
|
||||||
fi
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
ln -s $APP/Contents/MacOS/netbird $AGENT
|
$AGENT service install
|
||||||
if test -f $AGENT; then
|
$AGENT service start
|
||||||
echo "NetBird binary linked successfully." &>> $LOG_FILE
|
|
||||||
else
|
|
||||||
echo "NetBird could not create symlink to /usr/local/bin" &>> $LOG_FILE
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
$AGENT service install
|
open $APP
|
||||||
$AGENT service start
|
|
||||||
|
|
||||||
open $APP
|
echo "Finished Netbird installation successfully"
|
||||||
|
exit 0 # all good
|
||||||
echo "Finished Netbird installation successfully" &>> $LOG_FILE
|
} &>> $LOG_FILE
|
||||||
exit 0 # all good
|
|
||||||
|
@ -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" &>> $LOG_FILE
|
echo "Preinstall complete"
|
||||||
exit 0 # all good
|
exit 0 # all good
|
||||||
|
} &> $LOG_FILE
|
||||||
|
Loading…
Reference in New Issue
Block a user