Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1197527
| From | Marc Haber <mh+debian-bugs@zugschlus.de> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1029140: cron-apt refuses to run when RUNSLEEP is set |
| Date | 2024-05-15 11:10 +0200 |
| Message-ID | <IEiO5-dukd-3@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <FRu1X-Qyg-3@gated-at.bofh.it> <FPhsd-1iaS-3@gated-at.bofh.it> <FRvU6-RJW-5@gated-at.bofh.it> <FPhsd-1iaS-3@gated-at.bofh.it> <FRvU6-RJW-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> Can you run it with bash -x from cron? Hopefully it tells where it breaks Using bash will not help here, that's the problem. cron-apt is a /bin/sh script, and on many systems /bin/sh is dash. And, $RANDOM doesn't exist in dash. Change cron-apt's shebang line to use /bin/bash and it should be fine. Now we probably can move on to stage 6 of debugging "how did that ever work?", since we're having /bin/sh point to dash for a while and this issue just appeared on of my _stable_ systems. Greetings Marc
Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread
Bug#1029140: cron-apt refuses to run when RUNSLEEP is set Marc Haber <mh+debian-bugs@zugschlus.de> - 2024-05-15 11:10 +0200
csiph-web