Recent content by sesardelaisla

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

  1. sesardelaisla

    Solved bash executable script problems when executed through a cron job

    I setup the current router config from scratch (the router config itself), but it is true that for the USB with Entware, I tried to just plug it in the current "new" router and it worked, so I left it as it was. As far as I remember, Entware updated upon first run in the new router, so I thought...
  2. sesardelaisla

    Solved bash executable script problems when executed through a cron job

    You are the man! Thank you so much! This is what I am getting in the log file after the cron job is executed: Sun Jan 28 17:14:00 MET 2024 # INFO: Using main config file /tmp/mnt/USB_ASUS/entware/etc/nginx/config Processing domain_01 + Checking domain name(s) of existing cert... unchanged. +...
  3. sesardelaisla

    Solved bash executable script problems when executed through a cron job

    Would it help to share the “dehydrated” file I have?
  4. sesardelaisla

    Solved bash executable script problems when executed through a cron job

    Ok. This is how the script looks like now. I tried to implement everything you suggested: #!/bin/sh PATH=$PATH:/opt/etc/nginx:/jffs/scripts date > /jffs/scripts/renew_certs_00.log cd /opt/etc/nginx /opt/etc/nginx/dehydrated --domain domain.com --cron 2>&1 >> /jffs/scripts/renew_certs_00.log...
  5. sesardelaisla

    Solved bash executable script problems when executed through a cron job

    Apologies. Just tried again to copy/paste the error here and it doesn't issue any error. I guess I did some typo mistake when testing. However, I don't see any change in the output with either option as per below: ./dehydrated --domain domain01.com --cron 2>&1 >> /jffs/scripts/renew_certs.log...
  6. sesardelaisla

    Solved bash executable script problems when executed through a cron job

    Thanks everyone for your feedback! I followed your suggestions and this is what I just tried. It doesn't work either. I am afraid that behaviour is the same. Any other idea? Please, do note that I am not a guru on this, so I am not 100% sure I have implemented everything as you indicated...
  7. sesardelaisla

    Solved bash executable script problems when executed through a cron job

    Hello Everyone, My first message here, although I have learnt a lot by reading many posts and solutions here in the past! For the first time, I hope you can help with a topic I haven't found a way to fix it by searching previously in the forum. I have a script file which it is executed fine if...
Top