More specific log change check

pull/8/head
IMcPwn 2015-09-26 20:26:51 -04:00
parent 75284201f3
commit 20717783ba
1 changed files with 2 additions and 2 deletions

View File

@ -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