update pleroma expire scripts

This commit is contained in:
Bob Mottram 2018-02-06 14:31:53 +00:00
parent b706fdba11
commit 7f3d87617f
1 changed files with 3 additions and 0 deletions

View File

@ -662,6 +662,9 @@ function upgrade_pleroma {
read_config_param PLEROMA_DOMAIN_NAME
read_config_param PLEROMA_EXPIRE_MONTHS
if ! grep -q "/media/" /etc/cron.daily/pleroma-expire; then
rm $pleroma_expire_posts_script
fi
if [ ! -f $pleroma_expire_posts_script ]; then
expire_pleroma_posts $PLEROMA_DOMAIN_NAME $PLEROMA_EXPIRE_MONTHS
fi