• Kirill Smelkov's avatar
    check-url: Quote $URL in -z check · c1ecf017
    Kirill Smelkov authored
    If one wants to check URLs on UNIX-sockets, there is no full URL schema
    in curl for this, but the following has to be used instead:
        curl --unix-socket /path/to/socket http:/<url-path>
    For this to work, one can do e.g. the following trick:
        recipe  = slapos.cookbook:check_url_available
        url     = --unix-socket ${unicorn:socket}  http:/
    but then generated promise scripts fails this way:
        ./etc/promise/unicorn: line 7: [: too many arguments
    via quoting $URL in emptiness check we can support both usual URLs and
    urls with --unix-socket prepended trick.
    /reviewed-by @cedric.leninivin  (on !31)
Last commit
Last update
template Loading commit data...
__init__.py Loading commit data...