From d9281a37adfdbd088de4b09005f7688e36632a46 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 14 Feb 2018 19:21:40 +0000 Subject: [PATCH] Better compare --- src/freedombone-app-pleroma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index ed002826..caa3bc8c 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -101,7 +101,7 @@ function create_pleroma_blocklist { echo " users_query=\"\${users_query} nickname ilike '%\${blocked}%'\"" >> $blocking_script_file echo ' objects_updated=1' >> $blocking_script_file echo ' if [[ "$blocked" != *"@"* ]]; then' >> $blocking_script_file - echo ' if ! grep -q "$blocked" /etc/hosts; then' >> $blocking_script_file + echo ' if ! grep -q "127.0.0.1 $blocked" /etc/hosts; then' >> $blocking_script_file echo ' echo "127.0.0.1 $blocked" >> /etc/hosts' >> $blocking_script_file echo ' fi' >> $blocking_script_file echo ' if [ $websub_server_subscriptions_updated ]; then' >> $blocking_script_file