Giter VIP home page Giter VIP logo

Comments (5)

r-raymond avatar r-raymond commented on July 18, 2024

Hi, sorry for the inconvenience. That indeed looks like the problem. I think we can fix this by putting single quotes around

. But my bash is weak, so maybe someone else can weigh in. I think you could maybe escape the ${1} in your script to work around the problem for now (but we should fix this nevertheless).

Thanks for using SNM!

from nixos-mailserver.

The-M1k3y avatar The-M1k3y commented on July 18, 2024

Yes, escaping the ${1} in the script works. I guess the way to go is to change line 63 in nixos-mailserver/mail-server/users.nix to cat << 'EOF' > "/var/sieve/${name}/default.sieve". This way cat should ignore all dollars.

from nixos-mailserver.

The-M1k3y avatar The-M1k3y commented on July 18, 2024

Alternatively you could have a look at lib.pkgs.writeText. It seems to be used by most services in the nix store. But like your bash is weak, my nix is bad. So don't take my word for it.

from nixos-mailserver.

r-raymond avatar r-raymond commented on July 18, 2024

@The-M1k3y Thanks for the verification.

@eqyiel do you have an opinion on which of the proposed solutions is better? Any reason you did not use a nix function to write the scripts?

from nixos-mailserver.

eqyiel avatar eqyiel commented on July 18, 2024

@r-raymond I wasn't sure whether the files created by writeText would be garbage collected if I symlinked them here. If it's the same to you, please consider #73

@The-M1k3y I've tried the example mentioned in the PR, but could you please see if it works for you too?

from nixos-mailserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.