Commit 76e76869 authored by Joab Bremer's avatar Joab Bremer

Update install_unifi.sh

parent 46913e60
......@@ -32,10 +32,13 @@ install_mongo(){
creating_user(){
adduser -r -s /bin/nologin ubnt
}
backup_unifi(){
cp -r /opt/UniFi /opt/UniFi_bkp_$(date +%d%m%Y_%H%M%S)
}
install_unifi(){
#wget https://dl.ui.com/unifi/7.3.83/UniFi.unix.zip -P /opt -q
wget https://dl.ui.com/unifi/7.5.187/UniFi.unix.zip -P /opt -q
unzip -qq /opt/UniFi.unix.zip -d /opt
unzip -qq -o /opt/UniFi.unix.zip -d /opt
chown -R ubnt:ubnt /opt/UniFi
rm -rf /opt/UniFi.unix.zip
}
......@@ -68,6 +71,8 @@ starting_service_unifi(){
}
stty echo
echo -e "${RED}Iniciando Instalação${NC}"
echo -e "${RED}Fazendo BKP do UNIFI${NC}"
backup_unifi
echo -e "${RED}Desabilitando SE Linux${NC}"
disable_selinux
echo -e "${RED}Instalando Componentes${NC}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment