nixos/ipfs: replace deprecated command line option
According to https://docs.ipfs.io/reference/cli/#ipfs the --local command line option is deprecated and should be replaced with --offline.
This commit is contained in:
parent
5a18bbb4fa
commit
2b02b34029
@ -231,9 +231,9 @@ in {
|
|||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
'' + optionalString cfg.autoMount ''
|
'' + optionalString cfg.autoMount ''
|
||||||
ipfs --local config Mounts.FuseAllowOther --json true
|
ipfs --offline config Mounts.FuseAllowOther --json true
|
||||||
ipfs --local config Mounts.IPFS ${cfg.ipfsMountDir}
|
ipfs --offline config Mounts.IPFS ${cfg.ipfsMountDir}
|
||||||
ipfs --local config Mounts.IPNS ${cfg.ipnsMountDir}
|
ipfs --offline config Mounts.IPNS ${cfg.ipnsMountDir}
|
||||||
'' + concatStringsSep "\n" (collect
|
'' + concatStringsSep "\n" (collect
|
||||||
isString
|
isString
|
||||||
(mapAttrsRecursive
|
(mapAttrsRecursive
|
||||||
@ -243,7 +243,7 @@ in {
|
|||||||
read value <<EOF
|
read value <<EOF
|
||||||
${builtins.toJSON value}
|
${builtins.toJSON value}
|
||||||
EOF
|
EOF
|
||||||
ipfs --local config --json "${concatStringsSep "." path}" "$value"
|
ipfs --offline config --json "${concatStringsSep "." path}" "$value"
|
||||||
'')
|
'')
|
||||||
({ Addresses.API = cfg.apiAddress;
|
({ Addresses.API = cfg.apiAddress;
|
||||||
Addresses.Gateway = cfg.gatewayAddress;
|
Addresses.Gateway = cfg.gatewayAddress;
|
||||||
|
Loading…
Reference in New Issue
Block a user