Run automatic migration on startup command only

This commit is contained in:
itepechi 2023-08-06 04:39:35 +09:00
parent 605fa8cbb3
commit 3859c4bbcf
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ if [ "$1" = 'pleroma' ] || [ "$1" = 'pleroma_ctl' ]; then
done
fi
if [ "$1" = 'pleroma' ]; then
if [ "$1" = 'pleroma' ] && [ "$2" = 'start' ]; then
echo "-- Running migrations..."
pleroma_ctl migrate