Commit 55232f23 authored by Lukas Niegsch's avatar Lukas Niegsch

used slapos.cookbook:wrapper for chromium-launcher script

parent 782a9791
...@@ -4,7 +4,7 @@ md5sum = 4d73fe3c5d286163974bdb79c838e030 ...@@ -4,7 +4,7 @@ md5sum = 4d73fe3c5d286163974bdb79c838e030
[instance-headless-chromium] [instance-headless-chromium]
_update_hash_filename_ = instance-headless-chromium.cfg.in _update_hash_filename_ = instance-headless-chromium.cfg.in
md5sum = d72e5f6e159081f1c204ceb7ec0c0caf md5sum = d25e2316dbd52b4a822d70848b11a837
[template-nginx-conf] [template-nginx-conf]
_update_hash_filename_ = templates/nginx.conf.in _update_hash_filename_ = templates/nginx.conf.in
......
...@@ -54,17 +54,14 @@ nginx-mime-types = ${directory:etc}/mime-types ...@@ -54,17 +54,14 @@ nginx-mime-types = ${directory:etc}/mime-types
# Create a launcher script in /etc/service for the headless shell # Create a launcher script in /etc/service for the headless shell
# executable. # executable.
[chromium-launcher] [chromium-launcher]
recipe = slapos.recipe.template recipe = slapos.cookbook:wrapper
inline = command-line =
#!/bin/sh env FONTCONFIG_FILE=${font-config:output}
{{ parameter_list['chromium-wrapper'] }}
export FONTCONFIG_FILE=${font-config:output} --remote-debugging-address=${headless-chromium:ipv4}
exec {{ parameter_list['chromium-wrapper'] }} \ --remote-debugging-port=${headless-chromium:remote-debugging-port}
--remote-debugging-address=${headless-chromium:ipv4} \ ${headless-chromium:url}
--remote-debugging-port=${headless-chromium:remote-debugging-port} \ wrapper-path = ${directory:service}/chromium
"${headless-chromium:url}"
output = ${directory:service}/chromium
# Configure and launch the proxy server. # Configure and launch the proxy server.
[nginx-config] [nginx-config]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment