Create the mastodon home directory in the dependencies recipe

The user resource does not manage the home directory, so removing /opt/mastodon broke the build phase when it tried to create /opt/mastodon/.ssh.
This commit is contained in:
raucao committed 2026-10-07 19:49:52 +02:00
1 parent abfd654ae5
commit a3877e620e
1 file changed
+6
@@ -62,6 +62,12 @@ user mastodon_user do
home mastodon_path
end
directory mastodon_path do
owner mastodon_user
group mastodon_user
mode "0755"
end
# Mastodon 4.6 dropped ImageMagick in favor of libvips and requires libvips >= 8.13
package %w(build-essential ffmpeg libxml2-dev libxslt1-dev file git
curl pkg-config libprotobuf-dev protobuf-compiler libidn-dev