Preceding spaces
This commit is contained in:
parent
e7c9a2626c
commit
8ce9118af2
|
@ -73,10 +73,10 @@ function pleroma_add_filtering {
|
||||||
sed -i '/pbkdf2_rounds/a config :pleroma, :mrf_simple,' $pleroma_secret
|
sed -i '/pbkdf2_rounds/a config :pleroma, :mrf_simple,' $pleroma_secret
|
||||||
sed -i '/pbkdf2_rounds/a # begin filtering' $pleroma_secret
|
sed -i '/pbkdf2_rounds/a # begin filtering' $pleroma_secret
|
||||||
|
|
||||||
sed -i 's|reject: [| reject: [|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|federated_timeline_removal: | federated_timeline_removal: |g' $pleroma_secret
|
||||||
sed -i 's|media_nsfw: [| media_nsfw: [|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|media_removal: | media_removal: |g' $pleroma_secret
|
||||||
create_pleroma_blocklist
|
create_pleroma_blocklist
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -143,9 +143,9 @@ function create_pleroma_blocklist {
|
||||||
echo '';
|
echo '';
|
||||||
echo "if [ \"\$filter_str\" ]; then";
|
echo "if [ \"\$filter_str\" ]; then";
|
||||||
echo " if ! grep -q \" \$filter_str \" $pleroma_secret; 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| 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| 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| removal:.*| removal: [ \$filter_str ]|g\" $pleroma_secret";
|
||||||
echo " chown -R pleroma:pleroma $PLEROMA_DIR";
|
echo " chown -R pleroma:pleroma $PLEROMA_DIR";
|
||||||
echo ' sudo -u pleroma mix clean';
|
echo ' sudo -u pleroma mix clean';
|
||||||
echo ' sudo -u pleroma mix deps.compile';
|
echo ' sudo -u pleroma mix deps.compile';
|
||||||
|
|
Loading…
Reference in New Issue