浏览代码

Better compare

Bob Mottram 7 年前
父节点
当前提交
d9281a37ad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/freedombone-app-pleroma

+ 1
- 1
src/freedombone-app-pleroma 查看文件

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