Better compare
This commit is contained in:
parent
a0a3d9f9a5
commit
d9281a37ad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue