append maxdpeth to finding symlink

This commit is contained in:
ronivay
2018-08-01 16:00:08 +03:00
parent 77142b63bb
commit eb44d6c2db

View File

@@ -313,7 +313,7 @@ function InstallXO {
fi fi
# fix to prevent older installations to not update because systemd service is not symlinked anymore # 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 rm -f /etc/systemd/system/xo-server.service
fi fi