Skip to content
Snippets Groups Projects
Commit 7f3d8761 authored by Bob Mottram's avatar Bob Mottram
Browse files

update pleroma expire scripts

parent b706fdba
No related branches found
No related tags found
No related merge requests found
...@@ -662,6 +662,9 @@ function upgrade_pleroma { ...@@ -662,6 +662,9 @@ function upgrade_pleroma {
read_config_param PLEROMA_DOMAIN_NAME read_config_param PLEROMA_DOMAIN_NAME
read_config_param PLEROMA_EXPIRE_MONTHS 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 if [ ! -f $pleroma_expire_posts_script ]; then
expire_pleroma_posts $PLEROMA_DOMAIN_NAME $PLEROMA_EXPIRE_MONTHS expire_pleroma_posts $PLEROMA_DOMAIN_NAME $PLEROMA_EXPIRE_MONTHS
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment