List installed systemd services, not ones from the repo

Whenever we remove a service from this repo, we need this change to
remove residue from the system.

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

View File

@@ -159,7 +159,7 @@ Please add firewall rules and apply https proxy and secure your Immich instance.
# Run as root!
# Remove Immich systemd services
for i in immich*.service; do
systemctl list-unit-files --type=service | grep "^immich" | while read i unused; do
systemctl stop $i
systemctl disable $i
done