Merge pull request #72 from elsbrock/fixes
fix: remove hardcoded torrenter user and missing globals reference
This commit is contained in:
@@ -31,7 +31,7 @@ with lib; let
|
|||||||
text = ''
|
text = ''
|
||||||
touch ${cfg.stateDir}/prowlarr-api-key
|
touch ${cfg.stateDir}/prowlarr-api-key
|
||||||
chmod 400 ${cfg.stateDir}/prowlarr-api-key
|
chmod 400 ${cfg.stateDir}/prowlarr-api-key
|
||||||
chown torrenter ${cfg.stateDir}/prowlarr-api-key
|
chown ${globals.transmission.user} ${cfg.stateDir}/prowlarr-api-key
|
||||||
xq -r '.Config.ApiKey' "${nixarr.prowlarr.stateDir}/config.xml" > "${cfg.stateDir}/prowlarr-api-key"
|
xq -r '.Config.ApiKey' "${nixarr.prowlarr.stateDir}/config.xml" > "${cfg.stateDir}/prowlarr-api-key"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user