Ignore public/system to speed up chown

This commit is contained in:
Anthony Wang 2023-07-05 23:22:30 +00:00
parent 51456c1202
commit 7765e36975
Signed by: a
GPG key ID: 42A5B952E6DD8D38

View file

@ -15,7 +15,7 @@ post_upgrade() {
cd /var/lib/mastodon
echo "Setting ownership of mastodon files"
chown mastodon:mastodon -R .
find -path public/system -prune -o -exec chown mastodon:mastodon {} +
echo "Refreshing bundle"
sudo -u mastodon RAILS_ENV=production NODE_OPTIONS=--openssl-legacy-provider bundle install --redownload --standalone
echo "Upgrading database schema"