Better compare

This commit is contained in:
Bob Mottram 2018-02-14 19:21:40 +00:00
parent a0a3d9f9a5
commit d9281a37ad
1 changed files with 1 additions and 1 deletions

View File

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