Fix wrong use of equality operators
parent
0c8471f8aa
commit
424065c57c
|
@ -33,7 +33,7 @@ if [ -s /etc/config/responder ];
|
||||||
if [ -s /etc/turtle/Responder/Responder.db ]; then
|
if [ -s /etc/turtle/Responder/Responder.db ]; then
|
||||||
rm -r /etc/turtle/Responder/Responder.db
|
rm -r /etc/turtle/Responder/Responder.db
|
||||||
fi
|
fi
|
||||||
if [ $(readlink /etc/turtle/Responder/logs) != "/sshfs/Responder/logs" ]; then
|
if [ $(readlink /etc/turtle/Responder/logs) ! == "/sshfs/Responder/logs" ]; then
|
||||||
rm -r /etc/turtle/Responder/logs
|
rm -r /etc/turtle/Responder/logs
|
||||||
mkdir -p /sshfs/Responder/logs
|
mkdir -p /sshfs/Responder/logs
|
||||||
ln -s /sshfs/Responder/logs /etc/turtle/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
|
if [ -s /etc/turtle/Responder/Responder.db ]; then
|
||||||
rm -r /etc/turtle/Responder/Responder.db
|
rm -r /etc/turtle/Responder/Responder.db
|
||||||
fi
|
fi
|
||||||
if [ $(readlink /etc/turtle/Responder/logs) != "/tmp/Responder/logs" ]; then
|
if [ $(readlink /etc/turtle/Responder/logs) ! == "/tmp/Responder/logs" ]; then
|
||||||
rm -r /etc/turtle/Responder/logs
|
rm -r /etc/turtle/Responder/logs
|
||||||
mkdir -p /tmp/Responder/logs
|
mkdir -p /tmp/Responder/logs
|
||||||
ln -s /tmp/Responder/logs /etc/turtle/Responder/logs
|
ln -s /tmp/Responder/logs /etc/turtle/Responder/logs
|
||||||
|
|
Loading…
Reference in New Issue