Skip to content
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

Only the first 2 lines of the Crontab are saved #666

Closed
sirduke989 opened this issue Jul 10, 2023 · 1 comment
Closed

Only the first 2 lines of the Crontab are saved #666

sirduke989 opened this issue Jul 10, 2023 · 1 comment

Comments

@sirduke989
Copy link

yiCam Outdoor camera running firmware version 0.2.7 for model y211ga

The Crontab configuration is only saving the first two lines that are entered.

This appears to be caused by the bash replace only replacing the first instance of \n with \t here: https://github.com/roleoroleo/yi-hack-Allwinner-v2/blob/3d11161a9e958561c48a9a476fb7c3e099d9d03d/src/www/httpd/cgi-bin/set_configs.sh#L79C28-L79C28 so anything past the 2nd newline gets discarded.

I believe the first forward slash needs to be doubled up for a global replace like this: POST_DATA="${POST_DATA//\n/\t}"

roleoroleo added a commit that referenced this issue Jul 14, 2023
@roleoroleo
Copy link
Owner

Thank you for your time.
Fixed here: e5e998e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants