kubo: 0.19.2 -> 0.20.0
https://github.com/ipfs/kubo/releases/tag/v0.20.0 When creating a repository with `ipfs init`, `--empty-repo=true` is now the default according to the changelog. Modify the NixOS module to reflect this change and fix the `emptyRepo` setting to work with this change.
This commit is contained in:
@@ -172,8 +172,8 @@ in
|
||||
|
||||
emptyRepo = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc "If set to true, the repo won't be initialized with help files";
|
||||
default = true;
|
||||
description = lib.mdDoc "If set to false, the repo will be initialized with help files";
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
@@ -331,7 +331,7 @@ in
|
||||
|
||||
preStart = ''
|
||||
if [[ ! -f "$IPFS_PATH/config" ]]; then
|
||||
ipfs init ${optionalString cfg.emptyRepo "-e"}
|
||||
ipfs init --empty-repo=${lib.boolToString cfg.emptyRepo}
|
||||
else
|
||||
# After an unclean shutdown this file may exist which will cause the config command to attempt to talk to the daemon. This will hang forever if systemd is holding our sockets open.
|
||||
rm -vf "$IPFS_PATH/api"
|
||||
|
||||
Reference in New Issue
Block a user