From f7e5e834ec3e49e4b11c8e436e47c40590c648b5 Mon Sep 17 00:00:00 2001 From: Juhyung Park Date: Mon, 4 Mar 2024 15:22:21 +0900 Subject: [PATCH] Fix systemd services installation This needs to be done manually. Signed-off-by: Juhyung Park --- README.md | 13 ++++++++++++- install.sh | 11 ----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 56ef975..8b748fa 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,18 @@ In summary, the `install.sh` script does the following: * Limits listening host from 0.0.0.0 to 127.0.0.1 for microservices and machine-learning. - * Installs systemd services. +## 6. Install systemd services + +Because the install script switches to the immich user during installation, you must install systemd services manually: + +``` bash +sudo cp immich*.service /etc/systemd/system/ +sudo systemctl daemon-reload +for i in immich*.service; do + sudo systemctl enable $i + sudo systemctl start $i +done +``` ## Done! diff --git a/install.sh b/install.sh index 4707717..d0aeaaa 100755 --- a/install.sh +++ b/install.sh @@ -142,17 +142,6 @@ EOF # Cleanup rm -rf $TMP -# Installing systemd services -echo "Installing systemd services" - -cd "$BASEDIR" -sudo cp immich*.service /etc/systemd/system/ -sudo systemctl daemon-reload -for i in immich*.service; do - sudo systemctl enable $i - sudo systemctl start $i -done - echo echo "Done" echo