mirror of
https://github.com/iio612/immich-native.git
synced 2026-04-17 03:51:06 +00:00
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:
@@ -159,7 +159,7 @@ Please add firewall rules and apply https proxy and secure your Immich instance.
|
|||||||
# Run as root!
|
# Run as root!
|
||||||
|
|
||||||
# Remove Immich systemd services
|
# 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 stop $i
|
||||||
systemctl disable $i
|
systemctl disable $i
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ APP=$IMMICH_PATH/app
|
|||||||
if [[ "$USER" != "immich" ]]; then
|
if [[ "$USER" != "immich" ]]; then
|
||||||
# Disable systemd services, if installed
|
# 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 stop $i && \
|
||||||
systemctl disable $i && \
|
systemctl disable $i && \
|
||||||
rm /*/systemd/system/$i &&
|
rm /*/systemd/system/$i &&
|
||||||
|
|||||||
Reference in New Issue
Block a user