From d29959d36349236de016ad9c23ea5d54c945faed Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 6 Feb 2018 14:56:50 +0000 Subject: [PATCH] Moving is quicker --- src/freedombone-app-pleroma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index 25ed9688..e6af7e43 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -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