PG

Due to the restricted shell when using cron through cPanel, I had to change the cron command to:
PATH=/usr/bin:/bin:/usr/local/bin && cd /usr/local/bin && ./wp-update /home/xxxxx/public_html/
in order to get it to run.
Otherwise I just got "/usr/local/bin/wp-update: line 21: wp: command not found"
Hope this helps someone.

Fri, 10/06/2022 - 08:32 Permalink

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <p> <br> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA