Fix missing dir for Mastodon maintenance file

This commit is contained in:
2025-04-29 17:53:05 +04:00
parent cab766c806
commit f8e5fd2f3e
2 changed files with 8 additions and 1 deletions

View File

@@ -12,6 +12,13 @@ search(:node, "role:mastodon").each do |node|
end
if upstream_hosts.any?
web_root_dir = "/var/www/#{server_name}/public"
directory web_root_dir do
action :create
recursive true
owner 'www-data'
group 'www-data'
mode 0755
end
else
web_root_dir = "#{app_dir}/public"
upstream_hosts << "localhost"