@ -17,24 +17,31 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y mc
$STD apt-get install -y apt-transport-https
msg_ok "Installed Dependencies"
msg_ok "Installed Dependencies"
read -r -p "Local Controller? <y/N> " prompt
msg_info "Installing OpenJDK"
if [ [ " ${ prompt ,, } " = ~ ^( y| yes) $ ] ] ; then
$STD apt-get install -y openjdk-11-jre-headless
LOCAL = "--local-controller"
$STD apt-mark hold openjdk-11-*
else
msg_ok "Installed OpenJDK"
LOCAL = ""
fi
msg_info "Installing UniFi Network Application (Patience)"
msg_info "Installing MongoDB"
wget -qL https://get.glennr.nl/unifi/install/install_latest/unifi-latest.sh
wget -qL https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/multiverse/binary-amd64/mongodb-org-server_3.6.23_amd64.deb
$STD bash unifi-latest.sh --skip --add-repository $LOCAL
$STD dpkg -i mongodb-org-server_3.6.23_amd64.deb
msg_ok "Installed MongoDB"
msg_info "Installing UniFi Network Application"
wget -qO /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' >/etc/apt/sources.list.d/100-ubnt-unifi.list
$STD apt-get update
$STD apt-get install -y unifi
msg_ok "Installed UniFi Network Application"
msg_ok "Installed UniFi Network Application"
motd_ssh
motd_ssh
root
root
msg_info "Cleaning up"
msg_info "Cleaning up"
rm -rf dpkg -i mongodb-org-server_3.6.23_amd64.deb
$STD apt-get autoremove
$STD apt-get autoremove
$STD apt-get autoclean
$STD apt-get autoclean
msg_ok "Cleaned"
msg_ok "Cleaned"