diff options
author | Anthony Wang | 2023-07-08 03:03:44 +0000 |
---|---|---|
committer | Anthony Wang | 2023-07-08 03:03:44 +0000 |
commit | f35b3575acff2e3f2991a2df77fb0d6829b2aac1 (patch) | |
tree | b665eb5e14d2d3116a6145b67f304ddfa8d4e96d /mastodon.install | |
parent | 176e7a43cefaa1c5f60540cd6982ec8a0617ab9d (diff) | |
download | aur-f35b3575acff2e3f2991a2df77fb0d6829b2aac1.tar.gz |
Make chown actually ignore ./public/system and handle symlinks
Diffstat (limited to 'mastodon.install')
-rw-r--r-- | mastodon.install | 2 |
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" |