Add pleroma filtering config during upgrades

This commit is contained in:
Bob Mottram 2018-04-25 14:42:54 +01:00
parent 7f4f4f2c84
commit b535fb9b97
1 changed files with 2 additions and 0 deletions

View File

@ -772,6 +772,8 @@ function upgrade_pleroma {
read_config_param PLEROMA_DOMAIN_NAME
read_config_param PLEROMA_EXPIRE_MONTHS
pleroma_add_filtering
if ! grep -q "/media/" /etc/cron.daily/pleroma-expire; then
rm $pleroma_expire_posts_script
fi