Bob Mottram vor 7 Jahren
Ursprung
Commit
d9281a37ad
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      src/freedombone-app-pleroma

+ 1
- 1
src/freedombone-app-pleroma Datei anzeigen

@@ -101,7 +101,7 @@ function create_pleroma_blocklist {
101 101
     echo "            users_query=\"\${users_query} nickname ilike '%\${blocked}%'\"" >> $blocking_script_file
102 102
     echo '            objects_updated=1' >> $blocking_script_file
103 103
     echo '            if [[ "$blocked" != *"@"* ]]; then' >> $blocking_script_file
104
-    echo '                if ! grep -q "$blocked" /etc/hosts; then' >> $blocking_script_file
104
+    echo '                if ! grep -q "127.0.0.1  $blocked" /etc/hosts; then' >> $blocking_script_file
105 105
     echo '                    echo "127.0.0.1  $blocked" >> /etc/hosts' >> $blocking_script_file
106 106
     echo '                fi' >> $blocking_script_file
107 107
     echo '                if [ $websub_server_subscriptions_updated ]; then' >> $blocking_script_file