fix(install.sh): correctly handle systemd service installation (#2627)

Fixup install.sh systemd service installation

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2024-06-21 23:56:06 +02:00 committed by GitHub
parent 964732590d
commit 260f2e1d94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@
set -e
set -o noglob
set -x
#set -x
# --- helper functions for logs ---
info()
@ -538,7 +538,7 @@ install_binary() {
$SUDO install -o0 -g0 -m755 $TEMP_DIR/local-ai $BINDIR/local-ai
verify_system
if [ "$HAS_SYSTEMD" == "true" ]; then
if [ "$HAS_SYSTEMD" = true ]; then
configure_systemd
fi