Don't close twice
This commit is contained in:
parent
9136a7a2f9
commit
0fff1bd21b
|
@ -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 "\$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 'pg_exec($link, $notice_query);' >> $pleroma_expire_posts_script
|
||||||
echo '$rowaff1=pg_affected_rows($link);' >> $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 '' >> $pleroma_expire_posts_script
|
||||||
echo "\$objects_query=\"DELETE FROM objects WHERE inserted_at <= '\$oldate 01:01:01'\";" >> $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
|
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
|
if [ -f /etc/systemd/system/pleroma.service ]; then
|
||||||
systemctl restart pleroma
|
systemctl restart pleroma
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function logging_on_pleroma {
|
function logging_on_pleroma {
|
||||||
|
|
Loading…
Reference in New Issue