mirror of
https://git.yandere.love/skylar/pleromer-stuff.git
synced 2024-11-14 13:16:06 +00:00
9 lines
292 B
Bash
9 lines
292 B
Bash
#!/bin/bash
|
|
cd /opt/pleroma
|
|
systemctl stop pleroma
|
|
sudo -Hu pleroma MIX_ENV=prod mix pleroma.database prune_objects
|
|
sudo -Hu pleroma MIX_ENV=prod mix pleroma.database vacuum full
|
|
sudo -Hu postgres vacuumdb --all --analyze-in-stages
|
|
systemctl start pleroma
|
|
sudo -Hu postgres pg_repack -a -j 3
|