backslash
This commit is contained in:
parent
de8bacd3c2
commit
af2b593777
|
@ -82,7 +82,7 @@ function create_pleroma_blocklist {
|
||||||
echo ' if [[ "$blocked" == *"."* || "$blocked" == *"@"* ]]; then' >> $blocking_script_file
|
echo ' if [[ "$blocked" == *"."* || "$blocked" == *"@"* ]]; then' >> $blocking_script_file
|
||||||
echo ' if [ ${#blocked} -gt 4 ]; then' >> $blocking_script_file
|
echo ' if [ ${#blocked} -gt 4 ]; then' >> $blocking_script_file
|
||||||
echo " sudo -u postgres psql -d pleroma -c \"DELETE FROM objects WHERE data->>'content' ilike '%\${blocked}%' or data->>'actor' ilike '%\${blocked}%' or data->>'to' ilike '%\${blocked}%' or data->>'id' ilike '%\${blocked}%' or data->>'external_url' ilike '%\${blocked}%'\"" >> $blocking_script_file
|
echo " sudo -u postgres psql -d pleroma -c \"DELETE FROM objects WHERE data->>'content' ilike '%\${blocked}%' or data->>'actor' ilike '%\${blocked}%' or data->>'to' ilike '%\${blocked}%' or data->>'id' ilike '%\${blocked}%' or data->>'external_url' ilike '%\${blocked}%'\"" >> $blocking_script_file
|
||||||
echo " sudo -u postgres psql -d pleroma -c \"DELETE FROM notifications INNER JOIN users ON users.id = notifications.user_id WHERE users.nickname ilike '%${blocked}%';\"" >> $blocking_script_file
|
echo " sudo -u postgres psql -d pleroma -c \"DELETE FROM notifications INNER JOIN users ON users.id = notifications.user_id WHERE users.nickname ilike '%\${blocked}%';\"" >> $blocking_script_file
|
||||||
echo " sudo -u postgres psql -d pleroma -c \"DELETE FROM users WHERE nickname ilike '%\${blocked}%'\"" >> $blocking_script_file
|
echo " sudo -u postgres psql -d pleroma -c \"DELETE FROM users WHERE nickname ilike '%\${blocked}%'\"" >> $blocking_script_file
|
||||||
echo ' fi' >> $blocking_script_file
|
echo ' fi' >> $blocking_script_file
|
||||||
echo ' fi' >> $blocking_script_file
|
echo ' fi' >> $blocking_script_file
|
||||||
|
|
Loading…
Reference in New Issue