Skip to content

Update-ngxblocker: not run correctly on OpenBSD #238

@hucste

Description

@hucste

HI, i use it on OpenBSD 6.4

Curl and wget are installed!

$ curl -V curl 7.61.1 (x86_64-unknown-openbsd6.4) libcurl/7.61.1 LibreSSL/2.8.2 zlib/1.2.3 nghttp2/1.33.0 Release-Date: 2018-09-05 $ which curl /usr/local/bin/curl $ wget -V GNU Wget 1.19.5 compilé sur openbsd6.4. $ which wget /usr/local/bin/wget 

When i launch update as /usr/local/sbin/update-ngxblocker into terminal:

$ /usr/local/sbin/update-ngxblocker -n LOCAL Version: 3.2018.12.1272 Updated: Sun Dec 30 18:09:48 SAST 2018 REMOTE Version: 3.2019.01.1273 Updated: Tue Jan 1 18:10:23 SAST 2019 Update Available => 3.2019.01.1273 Downloading: globalblacklist.conf ...[OK] Checking url: https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/include_filelist.txt Nothing to update for directory: /etc/nginx/conf.d Nothing to update for directory: /etc/nginx/bots.d Nothing to update for directory: /usr/local/sbin Setting mode: 700 => /usr/local/sbin/install-ngxblocker Setting mode: 700 => /usr/local/sbin/setup-ngxblocker Setting mode: 700 => /usr/local/sbin/update-ngxblocker /usr/local/sbin/update-ngxblocker: /usr/sbin/service: not found Reloading NGINX configuration...[FAILED] 

Reload NGINX is not a really problem: rcctl reload nginx


When updater is launched by cron task:

LOCAL Version: �[1m�[37m3.2018.12.1272�[0m Updated: Sun Dec 30 18:09:48 SAST 2018 /usr/local/sbin/update-ngxblocker[405]: curl: not found REMOTE Version: �[1m�[37m�[0m Updated: Update Available => �[1m�[35m�[0m /usr/local/sbin/update-ngxblocker: curl: not found �[1m�[37mDownloading: globalblacklist.conf ...�[1m�[31mERROR CURL: (127){RESET} /usr/local/sbin/install-ngxblocker requires: wget �[1m�[31mDownload failed�[0m: not reloading NGINX config 

Any idea to resolve thoses problems?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions