From 999b506fe2f4ac6118d16a0a8e840f319c128ea3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 21 Jan 2018 18:34:08 +0000 Subject: [PATCH] root directory --- src/freedombone-app-pleroma | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index 1de91a16..60d7ffd7 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -74,7 +74,7 @@ pleroma_variables=(ONION_ONLY function create_pleroma_blocklist { echo '#!/bin/bash' > $blocking_script_file - echo "if [ ! -f ${PROJECT_NAME}-firewall-domains.cfg ]; then" >> $blocking_script_file + echo "if [ ! -f /root/${PROJECT_NAME}-firewall-domains.cfg ]; then" >> $blocking_script_file echo ' exit 0' >> $blocking_script_file echo 'fi' >> $blocking_script_file echo 'cd /etc/postgresql' >> $blocking_script_file @@ -84,11 +84,11 @@ function create_pleroma_blocklist { echo " sudo -u postgres psql -d pleroma -c \"DELETE FROM objects WHERE data->>'content' ilike '%\${blocked}%' or data->>'actor' ilike '%\${blocked}%'\"" >> $blocking_script_file echo ' fi' >> $blocking_script_file echo ' fi' >> $blocking_script_file - echo "done <${PROJECT_NAME}-firewall-domains.cfg" >> $blocking_script_file + echo "done > $blocking_script_file chmod +x $blocking_script_file if ! grep -q "$blocking_script_file" /etc/crontab; then - echo "#*/1 * * * * root $blocking_script_file > /dev/null" >> /etc/crontab + echo "*/1 * * * * root $blocking_script_file > /dev/null" >> /etc/crontab fi }