26 lines
889 B
Bash
Executable File
26 lines
889 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
test -x /usr/sbin/bongo-manager
|
|
test -x /usr/sbin/bongo-admin
|
|
test -x /usr/sbin/bongo-config
|
|
test -x /usr/sbin/bongo-sendmail
|
|
test -x /usr/sbin/bongopostdrop
|
|
[ "$(stat -c '%a %U:%G' /usr/sbin/bongopostdrop)" = \
|
|
"2755 root:bongopostdrop" ]
|
|
getent group bongopostdrop >/dev/null
|
|
[ "$(stat -c '%a %U:%G' /var/spool/bongo)" = \
|
|
"710 bongo:bongopostdrop" ]
|
|
[ "$(stat -c '%a %U:%G' /var/spool/bongo/maildrop)" = \
|
|
"1730 bongo:bongopostdrop" ]
|
|
python3 -c 'import bongo, bongo_web, bongo_web.preference_store, libbongo'
|
|
python3 -c '
|
|
import json
|
|
with open("/usr/share/bongo/conf/templates/web", encoding="utf-8") as stream:
|
|
web = json.load(stream)
|
|
for obsolete in ("session_database", "task_database", "identity_database"):
|
|
assert obsolete not in web, obsolete
|
|
'
|
|
test -f /lib/systemd/system/bongo.service ||
|
|
test -f /usr/lib/systemd/system/bongo.service
|