mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 16:34:31 +00:00
- Introduce lib/shell helpers and keep etc/* scripts thin via compatibility shims - Move Kerberos validation to scripts/validation/check_kerberos.sh and update callers - Add deterministic shellspec unit tests under tests/shellspec/ and wire Maven to run them - Add minimal Spring Boot authority module with startup + /health endpoint and Maven wiring - Document the new layout in docs/layout.md Co-authored-by: Junie <junie@jetbrains.com>
29 lines
1.0 KiB
Bash
Executable File
29 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Prole environment configuration
|
|
# This file is generated by the installer. Source it in new shells, or execute as a wrapper:
|
|
# "$PROLE_HOME/env.sh" <command> [args…]
|
|
# shellcheck shell=bash
|
|
export PROLE_HOME="$HOME/dev/prole"
|
|
export PROLE_CONF="${PROLE_CONF:-$PROLE_HOME/conf}"
|
|
export PROLE_DATA="${PROLE_DATA:-$HOME/.prole/data}"
|
|
export PROLE_LOGS="${PROLE_LOGS:-/opt/prole/logs/${USER}}"
|
|
export PROLE_SERVICE="${PROLE_SERVICE:-$PROLE_HOME/etc}"
|
|
|
|
# Ensure PATH works for GUI-launched shells (Docker, etc.)
|
|
_prole_add_path() { case ":${PATH}:" in *":$1:"*) ;; *) PATH="$1:${PATH:-}" ;; esac; }
|
|
_prole_add_path "$PROLE_HOME/bin"
|
|
_prole_add_path "/opt/homebrew/bin"
|
|
_prole_add_path "/usr/local/bin"
|
|
_prole_add_path "/usr/bin"
|
|
_prole_add_path "/bin"
|
|
_prole_add_path "/usr/sbin"
|
|
_prole_add_path "/sbin"
|
|
export PATH
|
|
|
|
# Add custom paths below if needed (examples):
|
|
|
|
# If executed with arguments (and not sourced), run them under this environment
|
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]] && [ "$#" -gt 0 ]; then
|
|
exec "$@"
|
|
fi
|