From: Nicolas Boisselier Date: Fri, 1 Nov 2019 15:44:50 +0000 (+0000) Subject: /opt/nb/lib/postgres/mime.sql X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=1ff5a871ca1c3a090217b78b18fcece9eb77e6cb;p=nb.git /opt/nb/lib/postgres/mime.sql --- diff --git a/lib/postgres/mime.sql b/lib/postgres/mime.sql index bd109392..6921a5b2 100644 --- a/lib/postgres/mime.sql +++ b/lib/postgres/mime.sql @@ -708,8 +708,8 @@ DELETE FROM tmp_mime; COPY tmp_mime FROM PROGRAM 'true && curl -s \ https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types \ | xmllint --html --xpath "/html/body//table[@class=\"standard-table\"]" - 2>/dev/null \ -| $NB_ROOT/bin/html2csv - \ -| tail -n+2 | \ +| html2csv - \ +| tail -n+2 \ ' WITH (format 'text', NULL ''); INSERT INTO mime SELECT * FROM tmp_mime ON CONFLICT DO NOTHING;