Don't close twice

This commit is contained in:
Bob Mottram 2018-01-20 21:44:36 +00:00
parent 9136a7a2f9
commit 0fff1bd21b
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,6 @@ function expire_pleroma_posts {
echo "\$notice_query=\"DELETE FROM notifications WHERE inserted_at <= '\$oldate 01:01:01'\";" >> $pleroma_expire_posts_script
echo 'pg_exec($link, $notice_query);' >> $pleroma_expire_posts_script
echo '$rowaff1=pg_affected_rows($link);' >> $pleroma_expire_posts_script
echo 'pg_close($link);' >> $pleroma_expire_posts_script
echo '' >> $pleroma_expire_posts_script
echo "\$objects_query=\"DELETE FROM objects WHERE inserted_at <= '\$oldate 01:01:01'\";" >> $pleroma_expire_posts_script
echo 'pg_exec($link, $objects_query);' >> $pleroma_expire_posts_script
@ -144,6 +143,7 @@ function pleroma_recompile {
if [ -f /etc/systemd/system/pleroma.service ]; then
systemctl restart pleroma
fi
}
function logging_on_pleroma {