Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.For api.aegirproject.org, we have an entry in aegir's crontab that runs a bash script to git pull the various repos, and then calls cron on the site, so that api.module picks up any changes.
On upgrades of Aegir, crontab is re-written, and so this additional entry is lost. Is there any way to make these entries persist across upgrades?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | non_destructive_aegir-1241500-7.patch | 1.9 KB | helmo |
| #6 | non_destructive_aegir-1241500-6.patch | 1.51 KB | helmo |











Comments
Comment #1
anarcat CreditAttribution: anarcat commentedThat is a great idea! We could have special markers in the crontab text to mark the automatically managed entries, a bit like what Puppet does... and only edit the entries within those markers.
Comment #2
Steven Jones CreditAttribution: Steven Jones commentedComment #3
ergonlogicNew features need to be implemented in Aegir 3.x, then we can consider back-porting to Aegir 2.x.
Comment #4
omega8cc CreditAttribution: omega8cc commentedWhy not to simply use
/etc/crontabfor custom entries you don't want to get overwritten?Comment #5
helmo CreditAttribution: helmo at Initfour websolutions commentedThe Debian package could easily handle a static cron file.
The code where we generate the contents for the crontab entry, however is now in the hosting package. In the 'hosting-setup' drush command.
And I don't want to do that in two places.
Letting Aegir edit a file in /etc/cron.d is not so nice in terms of security ... So the best option I see is to create some php code that can safely remove our old cron lines.
Comment #6
helmo CreditAttribution: helmo at Initfour websolutions commentedComment #7
helmo CreditAttribution: helmo at Initfour websolutions commentedAnd with some more documentation.
This should remove our old lines, and add the new ones at the bottom.
Comment #8
helmo CreditAttribution: helmo at Initfour websolutions commentedComment #9
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedSeems to work pretty well.
Comment #10
helmo CreditAttribution: helmo at Initfour websolutions commented