From 197155fb0b8f1e18740eb5efbd65bb7867e1ef05 Mon Sep 17 00:00:00 2001 From: nixbitcoin Date: Fri, 4 Jan 2019 10:47:06 +0100 Subject: [PATCH] Fixed typo and replaced tab with spaces --- modules/electrs.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/electrs.nix b/modules/electrs.nix index bb70f92..69df588 100644 --- a/modules/electrs.nix +++ b/modules/electrs.nix @@ -33,19 +33,19 @@ in { systemd.services.electrs = { description = "Run electrs"; - wantedBy = [ "muli-user.target" ]; + wantedBy = [ "multi-user.target" ]; requires = [ "bitcoind.service" ]; after = [ "bitcoind.service" ]; # create shell script to start up electrs safely with password parameter preStart = '' mkdir -m 0770 -p ${cfg.dataDir} - chown 'electrs:electrs' ${cfg.dataDir} - echo "${pkgs.electrs}/bin/electrs -vvv --timestamp --db-dir ${cfg.dataDir} --daemon-dir /var/lib/bitcoind --cookie=${config.services.bitcoind.rpcuser}:$(cat /secrets/bitcoin-rpcpassword)" > /var/lib/electrs/startscript.sh - chown -R 'electrs:electrs' ${cfg.dataDir} - chmod u+x ${cfg.dataDir}/startscript.sh - ''; + chown 'electrs:electrs' ${cfg.dataDir} + echo "${pkgs.electrs}/bin/electrs -vvv --timestamp --db-dir ${cfg.dataDir} --daemon-dir /var/lib/bitcoind --cookie=${config.services.bitcoind.rpcuser}:$(cat /secrets/bitcoin-rpcpassword)" > /var/lib/electrs/startscript.sh + chown -R 'electrs:electrs' ${cfg.dataDir} + chmod u+x ${cfg.dataDir}/startscript.sh + ''; serviceConfig = { - PermissionsStartOnly = "true"; + PermissionsStartOnly = "true"; ExecStart = "${pkgs.bash}/bin/bash ${cfg.dataDir}/startscript.sh"; User = "electrs"; Restart = "on-failure";