|
|
@ -22,17 +22,15 @@ $STD apt-get install -y gpg
|
|
|
|
msg_ok "Installed Dependencies"
|
|
|
|
msg_ok "Installed Dependencies"
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Installing lldap"
|
|
|
|
msg_info "Installing lldap"
|
|
|
|
DISTRO="Debian"
|
|
|
|
source /etc/os-release
|
|
|
|
os=$(less /etc/os-release | grep "^ID=")
|
|
|
|
os=$ID
|
|
|
|
os="${os:3}"
|
|
|
|
|
|
|
|
if [ "$os" == "ubuntu" ]; then
|
|
|
|
if [ "$os" == "ubuntu" ]; then
|
|
|
|
DISTRO="Ubuntu"
|
|
|
|
DISTRO="xUbuntu"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
DISTRO="${os^}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
DISTRO_VER=$(less /etc/os-release | grep "^VERSION_ID=")
|
|
|
|
echo "deb http://download.opensuse.org/repositories/home:/Masgalor:/LLDAP/${DISTRO}_${VERSION_ID}/ /" >/etc/apt/sources.list.d/home:Masgalor:LLDAP.list
|
|
|
|
DISTRO_VER="${DISTRO_VER:12}"
|
|
|
|
curl -fsSL https://download.opensuse.org/repositories/home:Masgalor:LLDAP/${DISTRO}_${VERSION_ID}/Release.key | gpg --dearmor >/etc/apt/trusted.gpg.d/home_Masgalor_LLDAP.gpg
|
|
|
|
DISTRO_VER="${DISTRO_VER%%\"}"
|
|
|
|
|
|
|
|
echo "deb http://download.opensuse.org/repositories/home:/Masgalor:/LLDAP/${DISTRO}_${DISTRO_VER}/ /" > /etc/apt/sources.list.d/home:Masgalor:LLDAP.list
|
|
|
|
|
|
|
|
curl -fsSL https://download.opensuse.org/repositories/home:Masgalor:LLDAP/${DISTRO}_${DISTRO_VER}/Release.key | gpg --dearmor -o /etc/apt/trusted.gpg.d/home_Masgalor_LLDAP.gpg
|
|
|
|
|
|
|
|
$STD apt update
|
|
|
|
$STD apt update
|
|
|
|
$STD apt install -y lldap
|
|
|
|
$STD apt install -y lldap
|
|
|
|
systemctl enable -q --now lldap
|
|
|
|
systemctl enable -q --now lldap
|
|
|
|