stuff
This commit is contained in:

committed by
Shelvacu on prophecy

parent
a2f8be7cd4
commit
d26c36cdb5
@@ -154,7 +154,7 @@ in
|
||||
wantedBy = lib.mkIf cfg.autoStart [ "multi-user.target" ];
|
||||
description = "Hentai@Home client";
|
||||
preStart = ''
|
||||
set -xeu
|
||||
set -euo pipefail
|
||||
all_dirs=(${lib.escapeShellArgs dirs})
|
||||
for d in "''${all_dirs[@]}"; do
|
||||
containing_dir="$(dirname -- "$d")"
|
||||
@@ -164,8 +164,8 @@ in
|
||||
fi
|
||||
done
|
||||
${lib.optionalString (cfg.credentials != null) ''
|
||||
client_id="${toString cfg.clientId}"
|
||||
client_key="$(cat ${lib.escapeShellArg cfg.clientKeyPath})"
|
||||
client_id="${toString cfg.credentials.clientId}"
|
||||
client_key="$(cat ${lib.escapeShellArg cfg.credentials.clientKeyPath})"
|
||||
printf '%s-%s' "$client_id" "$client_key" > ${lib.escapeShellArg cfg.clientLoginPath}
|
||||
''}
|
||||
'';
|
||||
|
Reference in New Issue
Block a user