summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Wang2023-07-08 03:03:44 +0000
committerAnthony Wang2023-07-08 03:03:44 +0000
commitf35b3575acff2e3f2991a2df77fb0d6829b2aac1 (patch)
treeb665eb5e14d2d3116a6145b67f304ddfa8d4e96d
parent176e7a43cefaa1c5f60540cd6982ec8a0617ab9d (diff)
downloadaur-f35b3575acff2e3f2991a2df77fb0d6829b2aac1.tar.gz
Make chown actually ignore ./public/system and handle symlinks
-rw-r--r--mastodon.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon.install b/mastodon.install
index 594262241c20..99aae622c954 100644
--- a/mastodon.install
+++ b/mastodon.install
@@ -15,7 +15,7 @@ post_upgrade() {
cd /var/lib/mastodon
echo "Setting ownership of mastodon files"
- find -path public/system -prune -o -exec chown mastodon:mastodon {} +
+ find -path ./public/system -prune -o -exec chown -h mastodon:mastodon {} +
echo "Refreshing bundle"
sudo -u mastodon RAILS_ENV=production NODE_OPTIONS=--openssl-legacy-provider bundle install --redownload --standalone
echo "Upgrading database schema"