From eb44d6c2db8c47de01f60ece6ee704e1bbbbc18d Mon Sep 17 00:00:00 2001 From: ronivay Date: Wed, 1 Aug 2018 16:00:08 +0300 Subject: [PATCH] append maxdpeth to finding symlink --- xo-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xo-install.sh b/xo-install.sh index e63976f..b94f9cc 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -313,7 +313,7 @@ function InstallXO { fi # fix to prevent older installations to not update because systemd service is not symlinked anymore - if [[ $(find /etc/systemd/system -type l -name "xo-server.service") ]]; then + if [[ $(find /etc/systemd/system -maxdepth 1 -type l -name "xo-server.service") ]]; then rm -f /etc/systemd/system/xo-server.service fi