Fixed agent install script for linux.

This commit is contained in:
Ylian Saint-Hilaire 2019-03-28 16:53:44 -07:00
parent 7d38f045e6
commit 246d24a92e
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ start() {
fi
echo 'Starting service…' >&2
local CMD="$SCRIPT &> \"$LOGFILE\" & echo \$!"
cd /usr/local/mesh
su -c "$CMD" $RUNAS > "$PIDFILE"
echo 'Service started' >&2
}