krraaamer / porkbun-ddns.sh

quick and dirty dynamic dns script (bash) for porkbun.com hosted dns
2 stars 1 forks source link

openwrt ddns #1

Open yefenghu opened 2 years ago

yefenghu commented 2 years ago

After searching the whole network, I finally found you. You are the only author of the script for making porkbun ddns. But I cannot run the script update dns record on the openwrt router. do not know why? Can you help me take a look? 1、i put the sh script in /usr/sbin/ 2、give the script permission chmod +x 3、set a cron /15    * /usr/bin/porkbun-ddhs.sh but it can not work .this is log. Fri Sep 17 01:19:00 2021 cron.err crond[21394]: USER root pid 8272 cmd sh /usr/sbin/porkbun-ddhs.sh

krraaamer commented 2 years ago

Please try running /usr/sbin/porkbun-ddhs.sh from your shell/terminal/ssh, and post the output here so that I may attempt diagnosis

yefenghu commented 2 years ago

this is shell log root@OpenWrt:~# sh /usr/sbin/porkbun-ddns.sh : not foundorkbun-ddns.sh: line 2: BusyBox v1.33.1 (2021-06-30 14:02:26 UTC) multi-call binary.

Usage: crontab [-c DIR] [-u USER] [-ler]|[FILE]

    -c      Crontab directory
    -u      User
    -l      List crontab
    -e      Edit crontab
    -r      Delete crontab
    FILE    Replace crontab by FILE ('-': stdin)

: not foundorkbun-ddns.sh: line 4: : not foundorkbun-ddns.sh: line 9: : not foundorkbun-ddns.sh: line 14: /usr/sbin/porkbun-ddns.sh: line 34: syntax error: unexpected "fi" (expecting "then")

yefenghu commented 2 years ago

this is openwrt ddns log 28886f38bdd628f2105cb205b30dfb4

image

yefenghu commented 2 years ago

can you help me ?

krraaamer commented 2 years ago

It appears from your screenshots that you are calling this script as part of an external DDNS procedure -- this script is intended to run on its own, not to be called by another script/service.

On 2021-09-25 17:42, yefenghu wrote:

can you help me ?

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. Triage notifications on the go with GitHub Mobile for iOS [3] or Android [4].

Links:

[1] https://github.com/krraaamer/porkbun-ddns.sh/issues/1#issuecomment-927204519 [2] https://github.com/notifications/unsubscribe-auth/ATJ7VXN6BN663ZTHW53UT5TUDZT6RANCNFSM5EF5G7FA [3] https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 [4] https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

yefenghu commented 2 years ago

image how to solve it ?please