diff options
Diffstat (limited to 'modules/webapps/mastodon.nix')
-rw-r--r-- | modules/webapps/mastodon.nix | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/webapps/mastodon.nix b/modules/webapps/mastodon.nix index f8fbcba..6255de9 100644 --- a/modules/webapps/mastodon.nix +++ b/modules/webapps/mastodon.nix | |||
@@ -163,6 +163,7 @@ in | |||
163 | path = [ cfg.workdir.gems cfg.workdir.gems.ruby pkgs.file ]; | 163 | path = [ cfg.workdir.gems cfg.workdir.gems.ruby pkgs.file ]; |
164 | 164 | ||
165 | preStart = '' | 165 | preStart = '' |
166 | install -m 0755 -d ${cfg.dataDir}/tmp/cache | ||
166 | ./bin/bundle exec rails db:migrate | 167 | ./bin/bundle exec rails db:migrate |
167 | ''; | 168 | ''; |
168 | 169 | ||
@@ -218,12 +219,5 @@ in | |||
218 | unitConfig.RequiresMountsFor = cfg.dataDir; | 219 | unitConfig.RequiresMountsFor = cfg.dataDir; |
219 | }; | 220 | }; |
220 | 221 | ||
221 | system.activationScripts.mastodon = { | ||
222 | deps = [ "users" ]; | ||
223 | text = '' | ||
224 | install -m 0755 -o ${cfg.user} -g ${cfg.group} -d ${cfg.dataDir}/tmp/cache | ||
225 | ''; | ||
226 | }; | ||
227 | |||
228 | }; | 222 | }; |
229 | } | 223 | } |