4
Stalwart / Stalwart (amd64, x86_64, cicd.any, bookworm trixie noble, main) (push) Failing after 29s
Stalwart / Stalwart (arm64, aarch64, cicd.any, bookworm trixie noble, main) (push) Failing after 28s

This commit is contained in:
Cantibra
2026-06-12 18:09:45 +02:00
parent 3fde1e23ba
commit 9a6feb3990
6 changed files with 42 additions and 99 deletions
+1 -1
View File
@@ -1 +1 @@
/etc/stalwart.toml
/etc/stalwart/stalwart.env
-23
View File
@@ -28,28 +28,5 @@ case "${1}" in
/usr/bin/install --directory --group='stalwart' --mode='750' --owner='stalwart' '/var/lib/stalwart'
/usr/bin/install --directory --group='stalwart' --mode='750' --owner='stalwart' '/var/log/stalwart'
/usr/bin/install --directory --group='stalwart' --mode='750' --owner='stalwart' '/var/logrotate/stalwart'
if ! /usr/bin/grep --quiet "secret =" '/etc/stalwart.toml'; then
PASSWORD=$(/usr/bin/openssl rand -base64 '18')
PASSWORD_SHA512=$(/usr/bin/echo "${PASSWORD}" | /usr/bin/openssl passwd -noverify -stdin -quiet -6)
/usr/bin/echo "secret = \"${PASSWORD_SHA512}\"" >> '/etc/stalwart.toml'
/usr/bin/chown 'stalwart' '/etc/stalwart.toml'
/usr/bin/echo '##'
/usr/bin/echo '##'
/usr/bin/echo '## User: root '
/usr/bin/echo "## Password: ${PASSWORD}"
/usr/bin/echo '##'
/usr/bin/echo '##'
fi
if [ -x '/usr/bin/deb-systemd-invoke' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
/usr/bin/true
if [ -n "${2}" ]; then
_dh_action='restart'
else
_dh_action='start'
fi
/usr/bin/deb-systemd-invoke "${_dh_action}" 'stalwart.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
;;
esac