Skip to content

Commit

Permalink
Fixed sdwdate addgroup
Browse files Browse the repository at this point in the history
if failed during build process.
  • Loading branch information
adrelanos committed Sep 20, 2021
1 parent ffbedd0 commit 0f509eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 1 addition & 4 deletions lib/systemd/system/sdwdate.service
Expand Up @@ -29,10 +29,7 @@ Conflicts=systemd-timesyncd.service
Type=notify
User=sdwdate
Group=sdwdate
## required for anondate which uses journalctl
## group systemd-journal might not exist yet during the build process.
## addgroup is a debianism
ExecStartPre=/bin/bash -c 'addgroup sdwdate systemd-journal || true'
ExecStartPre=/usr/libexec/sdwdate/sdwdate-addgroup
ExecStart=/usr/bin/sdwdate
SuccessExitStatus=143
TimeoutSec=30
Expand Down
13 changes: 13 additions & 0 deletions usr/libexec/sdwdate/sdwdate-addgroup
@@ -0,0 +1,13 @@
#!/bin/bash

## Copyright (C) 2021 - 2021 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

set -x

## required for anondate which uses journalctl
## group systemd-journal might not exist yet during the build process.
## addgroup is a debianism
addgroup sdwdate systemd-journal

exit 0

0 comments on commit 0f509eb

Please sign in to comment.