From 20717783bac2bdc8e98d4778c76e217335a7dbae Mon Sep 17 00:00:00 2001 From: IMcPwn Date: Sat, 26 Sep 2015 20:26:51 -0400 Subject: [PATCH] More specific log change check --- modules/responder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/responder b/modules/responder index 11f2e18..9b8d03e 100644 --- a/modules/responder +++ b/modules/responder @@ -33,7 +33,7 @@ if [ -s /etc/config/responder ]; if [ -s /etc/turtle/Responder/Responder.db ]; then rm -r /etc/turtle/Responder/Responder.db fi - if [[ $(readlink /etc/turtle/Responder/logs) != "/sshfs/Responder/logs" ]]; then + if [[ $(readlink /etc/turtle/Responder/logs) != "/sshfs/Responder/logs" || ! -d /sshfs/Responder/logs ]]; then rm -r /etc/turtle/Responder/logs mkdir -p /sshfs/Responder/logs ln -s /sshfs/Responder/logs /etc/turtle/Responder/logs @@ -48,7 +48,7 @@ if [ -s /etc/config/responder ]; if [ -s /etc/turtle/Responder/Responder.db ]; then rm -r /etc/turtle/Responder/Responder.db fi - if [[ $(readlink /etc/turtle/Responder/logs) != "/tmp/Responder/logs" ]]; then + if [[ $(readlink /etc/turtle/Responder/logs) != "/tmp/Responder/logs" || ! -d /tmp/Responder/logs ]]; then rm -r /etc/turtle/Responder/logs mkdir -p /tmp/Responder/logs ln -s /tmp/Responder/logs /etc/turtle/Responder/logs