Moving is quicker
This commit is contained in:
parent
7f3d87617f
commit
d29959d363
|
@ -174,9 +174,9 @@ function expire_pleroma_posts {
|
||||||
echo '# delete old files' >> $pleroma_expire_script
|
echo '# delete old files' >> $pleroma_expire_script
|
||||||
echo "find /etc/pleroma/uploads/* -mtime +${expire_days_files} -exec rm -rf {} +" >> $pleroma_expire_script
|
echo "find /etc/pleroma/uploads/* -mtime +${expire_days_files} -exec rm -rf {} +" >> $pleroma_expire_script
|
||||||
echo '' >> $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 '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 'rm -rf /etc/pleroma/tempfiles' >> $pleroma_expire_script
|
||||||
echo '' >> $pleroma_expire_script
|
echo '' >> $pleroma_expire_script
|
||||||
echo '/usr/bin/pleroma-expire-posts 2> /dev/null' >> $pleroma_expire_script
|
echo '/usr/bin/pleroma-expire-posts 2> /dev/null' >> $pleroma_expire_script
|
||||||
|
|
Loading…
Reference in New Issue