Hi,
DietPi version | G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=20
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
G_LIVE_PATCH_STATUS[0]=‘applied’
Distro version | bookworm 1
Kernel version | Linux HyperPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Architecture | armhf
SBC model | RPi 4 Model B (aarch64)
in cron minutely I have a script named UpdateDNS.
I can run the script manually and it works fine.
Run-parts gives this output:
sudo run-parts --verbose --debug /etc/cron.minutely/
"readme.txt": classicalre fail
".": classicalre fail
"UpdateDNS": classicalre pass
"..": classicalre fail
root@HyperPi:~# sudo run-parts --verbose --debug --lsbsysinit /etc/cron.minutely/
"readme.txt": tradre fail
".": tradre fail
"updatedns": tradre pass
"..": tradre fail
The script containts this:
!/bin/bash
exec /opt/DDNS/dyndns.sh -z mykey -Z mydomain -r otherkey -n nc
When I execute this command directly it works.
What am I missing here ?
Thanks
Hyper