!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

204 Members
58 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
10 Sep 2023
@lily:lily.flowersLily FosterOof that means it did not do the environment variable interpolation20:20:42
@lily:lily.flowersLily FosterI thought ExecStart did but maybe it doesn't do that var20:20:58
@shaniag:matrix.orgshaniagok, should i put that stuff in script?20:21:12
@lily:lily.flowersLily Foster You could. Try just using %d in place of $CREDENTIALS_DIRECTORY real quick though and see if that works 20:22:52
@lily:lily.flowersLily Foster(Still with ExecStart to test)20:23:01
@shaniag:matrix.orgshaniag
In reply to @lily:lily.flowers
You could. Try just using %d in place of $CREDENTIALS_DIRECTORY real quick though and see if that works
okayy, so this works for some reason
20:26:14
@lily:lily.flowersLily Foster Neat apparently ExecStart does substitute env vars but it does so earlier than that var exists. But they provide %d for use in certain unit options and I guess you have to use that when it's for creds and in the execstart line 20:27:28
@lily:lily.flowersLily FosterIt's probably due to Arcane Nonsense™️ so it might be best to just accept that that's the case and use it 😅20:28:28
@shaniag:matrix.orgshaniag
In reply to @lily:lily.flowers
It's probably due to Arcane Nonsense™️ so it might be best to just accept that that's the case and use it 😅
hmm, okay :)
20:28:46
@shaniag:matrix.orgshaniag

Can I somehow shorten this?

${pkgs.nodejs_20}/bin/node dbInit.js && ${pkgs.nodejs_20}/bin/node index.js --token=%d/bot.token
20:28:54
@lily:lily.flowersLily FosterYou could make dbInit a ExecStartPre option20:31:36
@lily:lily.flowersLily Foster If you did use npm-installed bins too then you wouldn't need the ${pkgs.nodejs_20}/bin/node part either :) 20:32:45
@shaniag:matrix.orgshaniag
In reply to @lily:lily.flowers
If you did use npm-installed bins too then you wouldn't need the ${pkgs.nodejs_20}/bin/node part either :)
i am tooooo lazy now it works and I never want to change it again hahaha
20:33:11
@lily:lily.flowersLily FosterYeah I definitely get it, I'm happy to help with whatever works for you20:33:41
@shaniag:matrix.orgshaniagThe problem is now my nextcloud broke lmao20:33:48

Show newer messages


Back to Room ListRoom Version: 6