From c18d1024c01b929e826037b8daeed329cc3f1b96 Mon Sep 17 00:00:00 2001 From: Axel ROGER Date: Fri, 5 Apr 2013 15:14:14 +0000 Subject: [PATCH] Don't log "manual launch of update_domain" if we don't do it... --- src/inotify_update_domains.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/inotify_update_domains.sh b/src/inotify_update_domains.sh index b7353221..631ffebe 100755 --- a/src/inotify_update_domains.sh +++ b/src/inotify_update_domains.sh @@ -4,7 +4,11 @@ . /etc/alternc/local.sh -test -x /usr/bin/logger && /usr/bin/logger -t ALTERNC Panel manual launch update_domain - -test -e "$INOTIFY_UPDATE_DOMAIN" && /usr/lib/alternc/update_domains.sh +LOGGER="/usr/bin/logger" +if [ -e "$INOTIFY_UPDATE_DOMAIN" ] ; then + if [ -x "$LOGGER" ] ; then + $LOGGER -t ALTERNC Panel manual launch update_domain + fi + /usr/lib/alternc/update_domains.sh +fi