mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 22:06:00 +03:00
nixos/pixelfed: cleanup package cache at the very start
This commit is contained in:
parent
5d486408b5
commit
db230657fc
@ -380,6 +380,12 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
script = ''
|
script = ''
|
||||||
|
# Before running any PHP program, cleanup the bootstrap.
|
||||||
|
# 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/*
|
||||||
|
|
||||||
# Concatenate non-secret .env and secret .env
|
# Concatenate non-secret .env and secret .env
|
||||||
rm -f ${cfg.dataDir}/.env
|
rm -f ${cfg.dataDir}/.env
|
||||||
cp --no-preserve=all ${configFile} ${cfg.dataDir}/.env
|
cp --no-preserve=all ${configFile} ${cfg.dataDir}/.env
|
||||||
@ -406,11 +412,6 @@ in {
|
|||||||
# Install Horizon
|
# Install Horizon
|
||||||
# FIXME: require write access to public/ — should be done as part of install — pixelfed-manage horizon:publish
|
# FIXME: require write access to public/ — should be done as part of install — pixelfed-manage horizon:publish
|
||||||
|
|
||||||
# Before running any PHP program, cleanup the bootstrap.
|
|
||||||
# It's necessary if you upgrade the application otherwise you might
|
|
||||||
# try to import non-existent modules.
|
|
||||||
rm -rf ${cfg.runtimeDir}/bootstrap/*
|
|
||||||
|
|
||||||
# Perform the first migration.
|
# Perform the first migration.
|
||||||
[[ ! -f ${cfg.dataDir}/.initial-migration ]] && pixelfed-manage migrate --force && touch ${cfg.dataDir}/.initial-migration
|
[[ ! -f ${cfg.dataDir}/.initial-migration ]] && pixelfed-manage migrate --force && touch ${cfg.dataDir}/.initial-migration
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user