Remove $NIX_DB_DIR
This variable has no reason to exist, given $NIX_STATE_DIR.
This commit is contained in:
parent
be64fbb501
commit
2fad86f361
12 changed files with 11 additions and 30 deletions
|
|
@ -30,7 +30,7 @@ echo "collecting garbage..."
|
|||
ln -sfn $reference "$NIX_STATE_DIR"/gcroots/ref
|
||||
nix-store --gc
|
||||
|
||||
if [ -n "$(type -p sqlite3)" -a "$(sqlite3 $NIX_DB_DIR/db.sqlite 'select count(*) from Refs')" -ne 0 ]; then
|
||||
if [ -n "$(type -p sqlite3)" -a "$(sqlite3 $NIX_STATE_DIR/db/db.sqlite 'select count(*) from Refs')" -ne 0 ]; then
|
||||
echo "referrers not cleaned up"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue