From a3877e620eecff811daf43b34326d182e19d4470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 7 Oct 2026 19:49:52 +0200 Subject: [PATCH] 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. --- site-cookbooks/kosmos-mastodon/recipes/dependencies.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/site-cookbooks/kosmos-mastodon/recipes/dependencies.rb b/site-cookbooks/kosmos-mastodon/recipes/dependencies.rb index f0ff8a0..22ff78e 100644 --- a/site-cookbooks/kosmos-mastodon/recipes/dependencies.rb +++ b/site-cookbooks/kosmos-mastodon/recipes/dependencies.rb @@ -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