From b6277a07d151f1ae483206dc2341d6effb67c814 Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 17 Jun 2023 19:57:29 +0200 Subject: [PATCH] nixos/pixelfed: fix code cache cleanup The "bootstrap" directory only exists within the app's package. The cached code is placed at the root of the runtime directory instead. (cherry picked from commit d99dd867fb4671d7527170d2c5311e6d8cf8eb88) --- nixos/modules/services/web-apps/pixelfed.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/web-apps/pixelfed.nix b/nixos/modules/services/web-apps/pixelfed.nix index ada8465c4fee..f9dc9d066e1c 100644 --- a/nixos/modules/services/web-apps/pixelfed.nix +++ b/nixos/modules/services/web-apps/pixelfed.nix @@ -380,11 +380,11 @@ in { }; script = '' - # Before running any PHP program, cleanup the bootstrap. + # Before running any PHP program, cleanup the code cache. # It's necessary if you upgrade the application otherwise you might # try to import non-existent modules. - rm -f ${cfg.runtimeDir}/bootstrap/app.php - rm -rf ${cfg.runtimeDir}/bootstrap/cache/* + rm -f ${cfg.runtimeDir}/app.php + rm -rf ${cfg.runtimeDir}/cache/* # Concatenate non-secret .env and secret .env rm -f ${cfg.dataDir}/.env