Current Server Time: 02:14 (Central Europe)

#apertus IRC Channel Logs

2024/03/13

Timezone: UTC


00:14
intrac
left the channel
00:14
intrac
joined the channel
04:54
BogdanXOR
left the channel
05:11
BogdanXOR
joined the channel
07:47
Spirit532
left the channel
07:49
Spirit532
joined the channel
08:49
paulk
left the channel
08:51
paulk
joined the channel
08:51
paulk
left the channel
08:51
paulk
joined the channel
09:27
paulk
left the channel
09:28
paulk
joined the channel
09:28
paulk
left the channel
09:28
paulk
joined the channel
11:07
anuejn
so here are some of the things we tried for getting an environment for executing comands from the webui:
11:07
anuejn
* a login shell with su (this should use PAM and thus read /etc/environment but that didnt work for some reason)
11:08
anuejn
* a login shell with sudo (same)
11:08
anuejn
* manually putting the correct paths in the PATH
11:10
anuejn
& manually sourcing apertus.sh for getting the functions in the bash session (https://github.com/apertus-open-source-cinema/axiom-firmware/blob/main/software/configs/apertus.sh)
11:10
anuejn
however that also did not work (define -F sees the functions but all our scripts dont)
11:21
anuejn
(context: systemd does not load /etc/environment nor /etc/profile.d/
11:21
anuejn
which means that we cannot just execute all our stuff
11:26
Bertl
how about using a cgi plugin like php?
11:27
Bertl
this could also process output and present it nicely?
11:32
anuejn
:D
11:33
anuejn
I mean the problem is how do we get an environment that is like the login-shell for a service started by systemd
12:04
Bertl
shouldn't a wrapper like ExecStart=/bin/bash -lc /path/to/whatever do the trick?
12:05
Bertl
of course you can also add Environment or EnvironmentFile options to the service to achieve similar
12:49
anuejn
EnvironmentFile did not do the trick
12:50
anuejn
doing a login-shell with bash i did not try but it normally should not read /etc/environment, no?
13:33
Bertl
that's what -i -l etc controls IIRC
14:24
BogdanXOR
left the channel
18:32
johnmcnuggets
joined the channel
20:37
johnmcnuggets
left the channel
20:40
sugarbeet
left the channel
20:40
sugarbeet
joined the channel
22:07
intrac
left the channel
22:07
intrac
joined the channel
22:20
intrac
left the channel
22:23
intrac
joined the channel