l radio: use scriptFile for htgen
This commit is contained in:
parent
0802657364
commit
78956e917c
|
@ -210,7 +210,7 @@ in {
|
||||||
user = {
|
user = {
|
||||||
name = "radio";
|
name = "radio";
|
||||||
};
|
};
|
||||||
script = ''. ${pkgs.writeDash "radio" ''
|
scriptFile = pkgs.writeDash "radio" ''
|
||||||
case "$Method $Request_URI" in
|
case "$Method $Request_URI" in
|
||||||
"POST /skip")
|
"POST /skip")
|
||||||
printf 'HTTP/1.1 200 OK\r\n'
|
printf 'HTTP/1.1 200 OK\r\n'
|
||||||
|
@ -231,7 +231,7 @@ in {
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
''}'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
|
Loading…
Reference in a new issue