FarrowStrange / hetzner-api-dyndns

A small script to dynamically update DNS records using the Hetzner DNS-API.
GNU General Public License v3.0
127 stars 37 forks source link

curl not found #39

Open Giga-Pudding opened 6 months ago

Giga-Pudding commented 6 months ago

The script states, that curl is not installed (Debian 12 Bookworm)

root@server:~# ./dyndns.sh
Error: Record_Name: : To run the script 'curl' is needed, but it seems not to be installed.
Error: Record_Name: : Please check 'https://github.com/FarrowStrange/hetzner-api-dyndns#install-tools' for more informations and try again.
/usr/bin/curl

But in fact, it is installed:

root@server:~# apt install curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.88.1-10+deb12u4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@server:~# command -v curl
/usr/bin/curl

root@server:~# curl
curl: try 'curl --help' or 'curl --manual' for more information
Giga-Pudding commented 6 months ago

Okay, after finding this issue, i understood what was going on: https://github.com/FarrowStrange/hetzner-api-dyndns/issues/23 The script should be fixed. I wasted too much time for this today -.-

nsty commented 6 months ago

Thanks, same problem. I don't get why the header says /bin/sh if it only runs using bash.