Moving is quicker

This commit is contained in:
Bob Mottram 2018-02-06 14:56:50 +00:00
parent 7f3d87617f
commit d29959d363
1 changed files with 2 additions and 2 deletions

View File

@ -174,9 +174,9 @@ function expire_pleroma_posts {
echo '# delete old files' >> $pleroma_expire_script
echo "find /etc/pleroma/uploads/* -mtime +${expire_days_files} -exec rm -rf {} +" >> $pleroma_expire_script
echo '' >> $pleroma_expire_script
echo '# copy avatar files back to uploads' >> $pleroma_expire_script
echo '# move avatar files back to uploads' >> $pleroma_expire_script
echo 'chown -R pleroma:pleroma /etc/pleroma/tempfiles' >> $pleroma_expire_script
echo 'cp -rp /etc/pleroma/tempfiles/* /etc/pleroma/uploads' >> $pleroma_expire_script
echo 'mv /etc/pleroma/tempfiles/* /etc/pleroma/uploads' >> $pleroma_expire_script
echo 'rm -rf /etc/pleroma/tempfiles' >> $pleroma_expire_script
echo '' >> $pleroma_expire_script
echo '/usr/bin/pleroma-expire-posts 2> /dev/null' >> $pleroma_expire_script