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