openlitespeed cron issue

sahostking

Verified User
Joined
Jan 29, 2021
Messages
110
Location
South Africa
Followed tutorial on one server and go to point of the cron setup: https://docs.directadmin.com/webservices/openlitespeed/general.html

However running it manually we get an error:

[root@da-test cron.d]# ./openlitespeed_htaccess_scan
./openlitespeed_htaccess_scan: line 1: syntax error near unexpected token `then'
./openlitespeed_htaccess_scan: line 1: `*/3 * * * * root if ! find /home/*/domains/*/*_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then /usr/local/lsws/bin/lswsctrl restart; fi'

So what am I missing?
 
Back
Top