fix
This commit is contained in:
@@ -125,10 +125,11 @@ in
|
|||||||
rm -f /run/postfix/mastodon.cf || true
|
rm -f /run/postfix/mastodon.cf || true
|
||||||
mkdir /run/postfix/ || true # Create /run/postfix if it doesn't exist
|
mkdir /run/postfix/ || true # Create /run/postfix if it doesn't exist
|
||||||
export hashedPassword=$(${lib.getExe pkgs.mkpasswd} -sm bcrypt "$password")
|
export hashedPassword=$(${lib.getExe pkgs.mkpasswd} -sm bcrypt "$password")
|
||||||
echo "noreply.mastodon@${sp.domain}:$hashedPassword" > /run/postfix/mastodon.cf
|
echo "${sp.domain} noreply.mastodon@${sp.domain}:$hashedPassword" > /run/postfix/mastodon.cf
|
||||||
|
${pkgs.postfix}/bin/postmap /run/postfix/mastodon.cf
|
||||||
# echo "$hashedPassword" > /run/postfix/mastodon.cf
|
# echo "$hashedPassword" > /run/postfix/mastodon.cf
|
||||||
chmod 440 /run/postfix/mastodon.cf
|
chmod 440 /run/postfix/mastodon.cf{,.db}
|
||||||
chown ${config.services.postfix.user}:${config.services.postfix.group} /run/postfix/mastodon.cf
|
chown ${config.services.postfix.user}:${config.services.postfix.group} /run/postfix/mastodon.cf{,.db}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user