Skip to content
Snippets Groups Projects
Commit a1e376b0 authored by Bob Mottram's avatar Bob Mottram
Browse files

Pleroma database migration

parent 10e71a86
No related branches found
No related tags found
No related merge requests found
Pipeline #74942 failed
......@@ -177,6 +177,7 @@ function pleroma_create_recompile_command {
echo 'sudo -u pleroma mix compile';
echo "chmod 644 $PLEROMA_DIR/config/*";
echo "chmod -R 755 $PLEROMA_DIR/deps/*";
echo 'sudo -u pleroma mix ecto.migrate';
echo 'systemctl restart pleroma'; } > /usr/bin/pleroma-recompile
chmod +x /usr/bin/pleroma-recompile
}
......@@ -191,6 +192,9 @@ function pleroma_recompile {
if ! grep -q 'chmod' /usr/bin/pleroma-recompile; then
pleroma_create_recompile_command
fi
if ! grep -q 'migrate' /usr/bin/pleroma-recompile; then
pleroma_create_recompile_command
fi
/usr/bin/pleroma-recompile
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment