Change systemd service file path to /lib/systemd

Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
This commit is contained in:
Juhyung Park
2024-10-17 13:12:24 +09:00
parent 5da9b76577
commit 3742711bb7
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ if [[ "$USER" != "immich" ]]; then
for i in immich*.service; do
systemctl stop $i && \
systemctl disable $i && \
rm /etc/systemd/system/$i &&
rm /*/systemd/system/$i &&
systemctl daemon-reload
done
) || true
@@ -28,7 +28,7 @@ if [[ "$USER" != "immich" ]]; then
sudo -u immich $0 $*
echo "Starting systemd services"
cp immich*.service /etc/systemd/system/
cp immich*.service /lib/systemd/system/
systemctl daemon-reload
for i in immich*.service; do
systemctl enable $i