s3lph
b558446308
Some checks failed
/ ansible-semaphore (push) Failing after 15s
/ atlasswprobe (push) Successful in 4m10s
/ daliserver (push) Successful in 2m19s
/ forgejo (push) Has been cancelled
/ forgejo-runner (push) Successful in 1m39s
/ http-mqtt-bridge (push) Successful in 5m6s
/ keycloak-24 (push) Has been cancelled
/ keycloak-25 (push) Has been cancelled
/ linux-diversion-ath-regd-optional (push) Has been cancelled
/ lottieconverter (push) Successful in 1m6s
/ matterbridge (push) Successful in 4m3s
/ matrix-element-web (push) Failing after 51s
/ matrix-hydrogen (push) Successful in 1m24s
/ matrix.to (push) Has been cancelled
/ maubot (push) Has been cancelled
/ maubot-plugin-spaceapi (push) Successful in 2m16s
/ maubot-plugin-ultimaker (push) Successful in 2m16s
/ mautrix-signal (push) Successful in 51s
/ mautrix-telegram (push) Has been cancelled
/ mediawiki-extension-auth-remoteuser (push) Has been cancelled
/ mediawiki-extension-nativesvghandler (push) Has been cancelled
/ mediawiki-extension-openidconnect (push) Has been cancelled
/ mediawiki-extension-pluggableauth (push) Has been cancelled
/ mqtt2prometheus (push) Has been cancelled
/ prometheus-ipmi-exporter (push) Has been cancelled
/ prometheus-dnsbl-exporter (push) Has been cancelled
/ prometheus2influxdb (push) Has been cancelled
/ python3-mautrix (push) Has been cancelled
/ python3-telethon (push) Has been cancelled
/ repo.s3lph.me-apt-source (push) Has been cancelled
/ republik-feeder (push) Has been cancelled
/ woodpecker-agent (push) Has been cancelled
/ woodpecker-cli (push) Has been cancelled
22 lines
584 B
Bash
Executable file
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
|