diff --git a/README.md b/README.md index e446426..f8f2d72 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/install.sh b/install.sh index 035a37e..6d63b49 100755 --- a/install.sh +++ b/install.sh @@ -10,7 +10,7 @@ APP=$IMMICH_PATH/app if [[ "$USER" != "immich" ]]; then # Disable systemd services, if installed ( - 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 && \ rm /*/systemd/system/$i &&