manticoresoftware / manticoresearch-backup

Repository for Manticore Search backup scripts
GNU General Public License v3.0
3 stars 1 forks source link

support shebang config #77

Closed sanikolaev closed 11 months ago

sanikolaev commented 11 months ago

If you try to backup in a container of our official docker image, you'll get:

root@4cfeb22b0f9e:/var/lib/manticore# manticore-backup --backup-dir=/tmp/
Copyright (c) 2023, Manticore Software LTD (https://manticoresearch.com)

Manticore config file: /etc/manticoresearch/manticore.conf
Tables to backup: all tables
Backup dir: /tmp/

Manticore config
  endpoint =  http://$ip:9312
2023-09-25 11:43:47 [Error] Failed to send query to the manticoresearch daemon. Make sure it's listening for HTTP or HTTPS connections (with proper certificates).

The likely reason is that the config is a script:

root@4cfeb22b0f9e:/var/lib/manticore# head -1 /etc/manticoresearch/manticore.conf
#!/bin/sh
donhardman commented 11 months ago

Fixed in this pull request: https://github.com/manticoresoftware/manticoresearch-backup/pull/80