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

@@ -163,7 +163,7 @@ for i in immich*.service; do
systemctl stop $i systemctl stop $i
systemctl disable $i systemctl disable $i
done done
rm /etc/systemd/system/immich*.service rm /lib/systemd/system/immich*.service
systemctl daemon-reload systemctl daemon-reload
# Remove Immich files # Remove Immich files

View File

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