Compare commits

..

No commits in common. "6f2f334a81655cf80a474b68964cb9883c4d5c42" and "9c3fb90eb87d8cde426698468dca997f98bc77ab" have entirely different histories.

2 changed files with 11 additions and 18 deletions

View File

@ -54,8 +54,8 @@ function update_script() {
header_info header_info
if [[ ! -d /usr/lib/unifi ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /usr/lib/unifi ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
apt-get update wget -qL https://get.glennr.nl/unifi/update/unifi-update.sh
apt-get install -y unifi bash unifi-update.sh
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
exit exit
} }

View File

@ -17,31 +17,24 @@ 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"
msg_info "Installing OpenJDK" read -r -p "Local Controller? <y/N> " prompt
$STD apt-get install -y openjdk-11-jre-headless if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
$STD apt-mark hold openjdk-11-* LOCAL="--local-controller"
msg_ok "Installed OpenJDK" else
LOCAL=""
fi
msg_info "Installing MongoDB" msg_info "Installing UniFi Network Application (Patience)"
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 wget -qL https://get.glennr.nl/unifi/install/install_latest/unifi-latest.sh
$STD dpkg -i mongodb-org-server_3.6.23_amd64.deb $STD bash unifi-latest.sh --skip --add-repository $LOCAL
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 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"