mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
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 d99dd867fb)
This commit is contained in:
committed by
github-actions[bot]
parent
761fa3b4fa
commit
b6277a07d1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user