From 7f3d87617fa8eec4c58a968851c627fe9723b441 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 6 Feb 2018 14:31:53 +0000 Subject: [PATCH] update pleroma expire scripts --- src/freedombone-app-pleroma | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index 09ea50db..25ed9688 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -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