shellcheck: fix setup-secrets.sh, spark-wallet
This commit is contained in:
parent
ee15837244
commit
01fa900633
@ -210,7 +210,7 @@ in {
|
|||||||
processedFiles=()
|
processedFiles=()
|
||||||
${
|
${
|
||||||
concatStrings (mapAttrsToList (n: v: ''
|
concatStrings (mapAttrsToList (n: v: ''
|
||||||
setupSecret ${n} ${v.user} ${v.group} ${v.permissions} }
|
setupSecret ${n} ${v.user} ${v.group} ${v.permissions}
|
||||||
'') cfg.secrets)
|
'') cfg.secrets)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -220,7 +220,9 @@ in {
|
|||||||
)
|
)
|
||||||
if [[ $unprocessedFiles ]]; then
|
if [[ $unprocessedFiles ]]; then
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
|
# shellcheck disable=SC2086
|
||||||
chown root: $unprocessedFiles
|
chown root: $unprocessedFiles
|
||||||
|
# shellcheck disable=SC2086
|
||||||
chmod 0440 $unprocessedFiles
|
chmod 0440 $unprocessedFiles
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -51,14 +51,14 @@ let
|
|||||||
torRateProvider = "--rate-provider wasabi --proxy socks5h://${config.nix-bitcoin.torClientAddressWithPort}";
|
torRateProvider = "--rate-provider wasabi --proxy socks5h://${config.nix-bitcoin.torClientAddressWithPort}";
|
||||||
startScript = ''
|
startScript = ''
|
||||||
${optionalString (cfg.getPublicAddressCmd != "") ''
|
${optionalString (cfg.getPublicAddressCmd != "") ''
|
||||||
publicURL="--public-url http://$(${cfg.getPublicAddressCmd})"
|
publicURL=(--public-url "http://$(${cfg.getPublicAddressCmd})")
|
||||||
''}
|
''}
|
||||||
exec ${config.nix-bitcoin.pkgs.spark-wallet}/bin/spark-wallet \
|
exec ${config.nix-bitcoin.pkgs.spark-wallet}/bin/spark-wallet \
|
||||||
--ln-path '${clightning.networkDir}' \
|
--ln-path '${clightning.networkDir}' \
|
||||||
--host ${cfg.address} --port ${toString cfg.port} \
|
--host ${cfg.address} --port ${toString cfg.port} \
|
||||||
--config '${config.nix-bitcoin.secretsDir}/spark-wallet-login' \
|
--config '${config.nix-bitcoin.secretsDir}/spark-wallet-login' \
|
||||||
${optionalString cfg.tor.proxy torRateProvider} \
|
${optionalString cfg.tor.proxy torRateProvider} \
|
||||||
$publicURL \
|
${optionalString (cfg.getPublicAddressCmd != "") ''"''${publicURL[@]}"''} \
|
||||||
--pairing-qr --print-key ${cfg.extraArgs}
|
--pairing-qr --print-key ${cfg.extraArgs}
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
Loading…
Reference in New Issue
Block a user