linux-builder: upgrade working directory
The working directory was still using an old name of the project, which made it uneccessary hard to understand why that directory was used exactly.
This commit is contained in:
parent
ebb88c3428
commit
a175c68f3f
1 changed files with 6 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ in
|
|||
|
||||
workingDirectory = mkOption {
|
||||
type = types.str;
|
||||
default = "/var/lib/darwin-builder";
|
||||
default = "/var/lib/linux-builder";
|
||||
description = ''
|
||||
The working directory of the Linux builder daemon process.
|
||||
'';
|
||||
|
|
@ -168,6 +168,11 @@ in
|
|||
];
|
||||
|
||||
system.activationScripts.preActivation.text = ''
|
||||
# Migrate if using the old working directory
|
||||
if [ -e /var/lib/darwin-builder ] && [ ! -e ${cfg.workingDirectory} ]; then
|
||||
mv /var/lib/darwin-builder ${cfg.workingDirectory}
|
||||
fi
|
||||
|
||||
mkdir -p ${cfg.workingDirectory}
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue