pi-hosted/tools/install_lldap.sh
Dedy Martadinata S 2884e0057e
add lldap (#132)
2023-01-10 15:15:13 -05:00

21 lines
486 B
Bash
Executable file

#!/bin/bash
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
#function check_internet() {
# printf "Checking if you are online..."
# wget -q --spider http://github.com
# if [ $? -eq 0 ]; then
# echo "Online. Continuing."
# else
# error "Offline. Go connect to the internet then run the script again."
# fi
#}
check_internet
echo "Creating directories..."
sudo mkdir -p /portainer/Files/AppData/Config/lldap/data || error "Failed to create Maloja data directory!"