update pleroma expire scripts
This commit is contained in:
parent
b706fdba11
commit
7f3d87617f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue