package-pipelines-miscellan.../keycloak-26/debian.postinst
s3lph cdf3074fbb
Some checks failed
/ ansible-semaphore (push) Successful in 2m0s
/ daliserver (push) Successful in 1m50s
/ forgejo (push) Successful in 3m37s
/ forgejo-runner (push) Successful in 1m23s
/ http-mqtt-bridge (push) Successful in 3m13s
/ keycloak-25 (push) Successful in 4m7s
/ keycloak-26 (push) Successful in 4m50s
/ linux-diversion-ath-regd-optional (push) Successful in 13m44s
/ lottieconverter (push) Successful in 54s
/ matterbridge (push) Successful in 2m24s
/ matrix-element-web (push) Successful in 2m33s
/ matrix-hydrogen (push) Successful in 1m11s
/ matrix.to (push) Successful in 4m7s
/ maubot (push) Successful in 6m40s
/ maubot-plugin-spaceapi (push) Successful in 1m20s
/ maubot-plugin-ultimaker (push) Successful in 1m34s
/ mautrix-signal (push) Successful in 1m3s
/ mautrix-telegram (push) Successful in 1m4s
/ mediawiki-extension-auth-remoteuser (push) Successful in 39s
/ mediawiki-extension-nativesvghandler (push) Successful in 35s
/ mediawiki-extension-openidconnect (push) Successful in 28s
/ mediawiki-extension-pluggableauth (push) Successful in 1m7s
/ mqtt2prometheus (push) Successful in 3m0s
/ prometheus-ipmi-exporter (push) Successful in 1m43s
/ prometheus-dnsbl-exporter (push) Successful in 1m30s
/ prometheus2influxdb (push) Successful in 52s
/ python3-mautrix (push) Successful in 1m10s
/ python3-telethon (push) Successful in 1m4s
/ repo.s3lph.me-apt-source (push) Successful in 42s
/ republik-feeder (push) Successful in 1m4s
/ ripe-atlas (push) Failing after 2m56s
/ woodpecker-agent (push) Successful in 1m35s
/ woodpecker-cli (push) Successful in 1m22s
chore: keycloak-26
2024-10-04 10:20:40 +02:00

22 lines
584 B
Bash
Executable file

#!/bin/bash
set -e
if [[ "$1" == "configure" ]]; then
if ! getent group keycloak >/dev/null; then
groupadd --system keycloak
fi
if ! getent passwd keycloak >/dev/null; then
useradd --system --gid keycloak --home-dir /opt/keycloak --shell /bin/false keycloak
fi
chown root:keycloak /opt/keycloak /etc/keycloak
chown keycloak:keycloak -R /opt/keycloak/lib/quarkus /opt/keycloak/data /opt/keycloak/ObjectStore
chmod 0750 /etc/keycloak
deb-systemd-helper enable keycloak.service
deb-systemd-invoke restart keycloak.service
fi