-
-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Crontab editor opening existing cron that has a ; in the command #4329
Comments
The issue here is the \ ... The error is caused by entering |
@Anuril appologies - yes, its |
I'll look into this and push a fix |
Describe the bug
It seems like there is a bug with the crontab editor. This cron:
find /home/sterba/web/xx.net/public_html/images-tmp -type d -ctime +2 -exec rm -rf {} \;
It added ok - but now I’m trying to edit, I just get a blank form with nothing pre-filled :} After opening up the cron.conf file and doing some testing, I see:
JOB='10' MIN='0' HOUR='12' DAY='*' MONTH='*' WDAY='*' CMD='find /home/sterba/web/xx.net/public_html/images-tmp -type d -ctime +2 -exec rm -rf {} \;' SUSPENDED='no' TIME='16:17:22' DATE='2023-12-06'
The issue seems to be around the
;
bit. Interestingly, if I remove the \ from it, it works :slight_smile: I’m not sure where the code is around that - so maybe someone else could find it? I’m re-working that cron anyway as I’m going in another direction, but just thought I’d point it out :slight_smile:Cheers
Andy
Tell us how to replicate the bug
find /home/sterba/web/xx.net/public_html/images-tmp -type d -ctime +2 -exec rm -rf {} \;
Which components are affected by this bug?
Control Panel Web Interface
Hestia Control Panel Version
1.8.11
Operating system
ubuntu 22.04
Log capture
No response
The text was updated successfully, but these errors were encountered: