Preceding spaces

This commit is contained in:
Bob Mottram 2018-04-25 15:17:06 +01:00
parent e7c9a2626c
commit 8ce9118af2
1 changed files with 7 additions and 7 deletions

View File

@ -73,10 +73,10 @@ function pleroma_add_filtering {
sed -i '/pbkdf2_rounds/a config :pleroma, :mrf_simple,' $pleroma_secret
sed -i '/pbkdf2_rounds/a # begin filtering' $pleroma_secret
sed -i 's|reject: [| reject: [|g' $pleroma_secret
sed -i 's|federated_timeline_removal: [| federated_timeline_removal: [|g' $pleroma_secret
sed -i 's|media_nsfw: [| media_nsfw: [|g' $pleroma_secret
sed -i 's|media_removal: [| media_removal: [|g' $pleroma_secret
sed -i 's|reject: | reject: |g' $pleroma_secret
sed -i 's|federated_timeline_removal: | federated_timeline_removal: |g' $pleroma_secret
sed -i 's|media_nsfw: | media_nsfw: |g' $pleroma_secret
sed -i 's|media_removal: | media_removal: |g' $pleroma_secret
create_pleroma_blocklist
}
@ -143,9 +143,9 @@ function create_pleroma_blocklist {
echo '';
echo "if [ \"\$filter_str\" ]; then";
echo " if ! grep -q \" \$filter_str \" $pleroma_secret; then";
echo " sed -i \"s|media_removal:.*|media_removal: [ \$filter_str ],|g\" $pleroma_secret";
echo " sed -i \"s|federated_timeline_removal:.*|federated_timeline_removal: [ \$filter_str ],|g\" $pleroma_secret";
echo " sed -i \"s|removal:.*|removal: [ \$filter_str ]|g\" $pleroma_secret";
echo " sed -i \"s| media_removal:.*| media_removal: [ \$filter_str ],|g\" $pleroma_secret";
echo " sed -i \"s| federated_timeline_removal:.*| federated_timeline_removal: [ \$filter_str ],|g\" $pleroma_secret";
echo " sed -i \"s| removal:.*| removal: [ \$filter_str ]|g\" $pleroma_secret";
echo " chown -R pleroma:pleroma $PLEROMA_DIR";
echo ' sudo -u pleroma mix clean';
echo ' sudo -u pleroma mix deps.compile';