fix
This commit is contained in:
@@ -138,8 +138,9 @@ in
|
||||
unitConfig.RequiresMountsFor = lib.mkIf sp.useBinds "/volumes/${cfg.location}/mastodon";
|
||||
serviceConfig = {
|
||||
loadCredentials = ["client-secret:${oauthClientSecretFP}"];
|
||||
ExecStart = lib.mkForce ''
|
||||
CLIENT_SECRET=$(cat $CREDENTIALS_DIRECTORY/client-secret) ${config.services.mastodon.package}/bin/puma -C config/puma.rb`
|
||||
ExecStart = lib.mkForce pkgs.writeShellScript "run-mastodon-with-client-secret" ''
|
||||
export CLIENT_SECRET=$(cat $CREDENTIALS_DIRECTORY/client-secret)
|
||||
${config.services.mastodon.package}/bin/puma -C config/puma.rb`
|
||||
'';
|
||||
};
|
||||
environment = {
|
||||
|
Reference in New Issue
Block a user