common: Load config as variable

This commit is contained in:
tschettervictor
2025-03-01 20:03:03 -07:00
committed by GitHub
parent b09ee86037
commit b5611e9196

View File

@@ -44,13 +44,8 @@ bastille_root_check() {
}
load_config() {
_user="$(id -un)"
if [ "${_user}" != "root" ] && [ -r "/usr/local/etc/bastille/bastille_${_user}.conf" ]; then
# shellcheck disable=SC1090
. /usr/local/etc/bastille/bastille_${_user}.conf
else
. /usr/local/etc/bastille/bastille.conf
fi
# shellcheck disable=SC1090
. ${BASTILLE_CONFIG}
}
# Load configuration file