package-pipelines-miscellan.../keycloak-24/debian.postinst
s3lph 7e50ffca40
Some checks failed
/ ansible-semaphore (push) Successful in 3m7s
/ atlasswprobe (push) Successful in 4m6s
/ daliserver (push) Successful in 2m31s
/ forgejo (push) Successful in 6m42s
/ forgejo-runner (push) Successful in 2m4s
/ http-mqtt-bridge (push) Successful in 5m25s
/ keycloak-23 (push) Successful in 11m14s
/ keycloak-24 (push) Successful in 11m14s
/ linux-diversion-ath-regd-optional (push) Successful in 31m51s
/ lottieconverter (push) Successful in 56s
/ matterbridge (push) Successful in 3m39s
/ matrix-element-web (push) Failing after 36s
/ matrix-hydrogen (push) Failing after 38s
/ matrix.to (push) Successful in 6m49s
/ maubot (push) Successful in 14m48s
/ maubot-plugin-spaceapi (push) Successful in 2m12s
/ maubot-plugin-ultimaker (push) Successful in 2m19s
/ mautrix-signal (push) Successful in 47s
/ mautrix-telegram (push) Successful in 1m21s
/ mediawiki-extension-auth-remoteuser (push) Successful in 40s
/ mediawiki-extension-nativesvghandler (push) Successful in 1m11s
/ mediawiki-extension-openidconnect (push) Successful in 1m21s
/ mediawiki-extension-pluggableauth (push) Successful in 1m0s
/ mqtt2prometheus (push) Successful in 1m48s
/ mumble-web (push) Successful in 58s
/ mumble-web-data (push) Failing after 1m9s
/ mumble-web-proxy (push) Failing after 58s
/ prometheus-ipmi-exporter (push) Successful in 1m49s
/ prometheus-dnsbl-exporter (push) Successful in 1m31s
/ prometheus2influxdb (push) Successful in 55s
/ python3-mautrix (push) Successful in 1m14s
/ python3-telethon (push) Successful in 1m21s
/ repo.s3lph.me-apt-source (push) Successful in 59s
/ republik-feeder (push) Successful in 1m25s
/ woodpecker-agent (push) Successful in 3m12s
/ woodpecker-cli (push) Successful in 1m11s
feat: add keycloak-24
2024-03-04 21:59:51 +01: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