Ansgar pushed to branch master at Debian FTP Team / dak
Commits:
-
73394eb3
by Praveen Arimbrathodiyil at 2021-08-24T21:50:56+05:30
-
0cf7a45f
by Ansgar at 2021-09-23T22:49:15+02:00
1 changed file:
Changes:
... | ... | @@ -206,6 +206,17 @@ And finally, we can generate the signed Release files:: |
206 | 206 |
(Look at ``/srv/dak/ftp/dists/unstable/Release``, ``Release.gpg``, and
|
207 | 207 |
``InRelease``)
|
208 | 208 |
|
209 |
+Enable email notifications
|
|
210 |
+++++++++++
|
|
211 |
+ |
|
212 |
+Comment out `No-Mail "true";` line under Dinstall::Options in `/etc/dak/dak.conf`::
|
|
213 |
+
|
|
214 |
+ Dinstall
|
|
215 |
+ {
|
|
216 |
+ Options
|
|
217 |
+ {
|
|
218 |
+ // No-Mail "true";
|
|
219 |
+ };
|
|
209 | 220 |
|
210 | 221 |
Next steps
|
211 | 222 |
++++++++++
|
... | ... | @@ -213,5 +224,20 @@ Next steps |
213 | 224 |
The debian archive automates most of these steps in jobs called
|
214 | 225 |
cron.unchecked, cron.hourly and cron.dinstall.
|
215 | 226 |
|
216 |
-TODO: Write example (simplified) versions of these cronjobs which will
|
|
217 |
-do for most installs.
|
|
227 |
+A simplified example that process unchecked uploads everyday and updates release files.
|
|
228 |
+Create `/etc/dak/cron.sh`::
|
|
229 |
+ |
|
230 |
+ #!/bin/sh
|
|
231 |
+
|
|
232 |
+ set -e
|
|
233 |
+ |
|
234 |
+ DAK=/srv/dak/bin/dak
|
|
235 |
+
|
|
236 |
+ $DAK process-upload -d /srv/ftp/pub/UploadQueue -a
|
|
237 |
+ $DAK generate-packages-sources2
|
|
238 |
+ $DAK generate-release
|
|
239 |
+ |
|
240 |
+and `/etc/cron.d/dak` (you can adjust the time and frequency as needed)::
|
|
241 |
+
|
|
242 |
+ 25 10 * * * dak /etc/dak/cron.sh
|
|
243 |
+ |