A SUID copy of sudo is used to make a user www-data able to run cron jobs with root privilegs. (The user www-data is used to not mess with the root user's own crontab). This update takes now care of updates to the sudo binary as part of MyCloud firmware upgrades. A past firmware upgrade rendered sudo unusable.
The www-data user's crontab is now saved in /tmp when stopping the app, and restored from there again when starting the app again. The crontab entries will therefore survive deactivating or re-installing the app.
Some clean-up.
Furthermore, I added the mksapkg-OS5 binary that I found here to your repository, because I have OS5 installed and use that one to build my app. Dunno, if the mksapkg-OS3 binary does the same job for OS5, so I just thought I add it.
Hey @stefaang !
I updated my "mycron" app:
sudo
is used to make a user www-data able to run cron jobs with root privilegs. (The user www-data is used to not mess with the root user's own crontab). This update takes now care of updates to thesudo
binary as part of MyCloud firmware upgrades. A past firmware upgrade renderedsudo
unusable./tmp
when stopping the app, and restored from there again when starting the app again. The crontab entries will therefore survive deactivating or re-installing the app.Furthermore, I added the
mksapkg-OS5
binary that I found here to your repository, because I have OS5 installed and use that one to build my app. Dunno, if themksapkg-OS3
binary does the same job for OS5, so I just thought I add it.