Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scripts
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
infra
scripts
Commits
1bd05617
Commit
1bd05617
authored
Mar 05, 2024
by
Joab Bremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update install_unifi.sh
parent
e1453d11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
install_unifi.sh
install_unifi.sh
+11
-10
No files found.
install_unifi.sh
View file @
1bd05617
...
@@ -52,8 +52,9 @@ backup_unifi(){
...
@@ -52,8 +52,9 @@ backup_unifi(){
install_unifi
(){
install_unifi
(){
cd
/opt/
cd
/opt/
#wget https://dl.ui.com/unifi/7.3.83/UniFi.unix.zip -P /opt -q
#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/
-O
UniFi.unix.zip
#wget https://dl.ui.com/unifi/7.4.162/UniFi.unix.zip -P /opt -q
#wget https://dl.ui.com/unifi/7.4.162/UniFi.unix.zip -P /opt -q
#wget https://dl.ui.com/unifi/7.5.187/UniFi.unix.zip -P /opt/ -O UniFi.unix.zip
wget https://dl.ui.com/unifi/8.0.28/UniFi.unix.zip /opt/
-O
UniFi.unix.zip
unzip
-qq
-o
/opt/UniFi.unix.zip
-d
/opt
unzip
-qq
-o
/opt/UniFi.unix.zip
-d
/opt
chown
-R
ubnt:ubnt /opt/UniFi
chown
-R
ubnt:ubnt /opt/UniFi
rm
-rf
/opt/UniFi.unix.zip
rm
-rf
/opt/UniFi.unix.zip
...
@@ -89,10 +90,10 @@ starting_service_unifi(){
...
@@ -89,10 +90,10 @@ starting_service_unifi(){
}
}
stty echo
stty echo
echo
-e
"
${
RED
}
Iniciando Instalação
${
NC
}
"
echo
-e
"
${
RED
}
Iniciando Instalação
${
NC
}
"
echo
-e
"
${
RED
}
Fazendo BKP do UNIFI
${
NC
}
"
#
echo -e "${RED}Fazendo BKP do UNIFI${NC}"
backup_unifi
#
backup_unifi
echo
-e
"
${
RED
}
Desabilitando SE Linux
${
NC
}
"
#
echo -e "${RED}Desabilitando SE Linux${NC}"
disable_selinux
#
disable_selinux
echo
-e
"
${
RED
}
Instalando Componentes
${
NC
}
"
echo
-e
"
${
RED
}
Instalando Componentes
${
NC
}
"
install_components
install_components
configure_mongorepo
configure_mongorepo
...
@@ -102,15 +103,15 @@ echo -e "${RED}Instalando JAVA${NC}"
...
@@ -102,15 +103,15 @@ echo -e "${RED}Instalando JAVA${NC}"
install_java
install_java
echo
-e
"
${
RED
}
Criando Usuário
${
NC
}
"
echo
-e
"
${
RED
}
Criando Usuário
${
NC
}
"
creating_user
creating_user
echo
-e
"
${
RED
}
Parando UniFi Antigo
${
NC
}
"
#
echo -e "${RED}Parando UniFi Antigo${NC}"
stoping_service
#
stoping_service
echo
-e
"
${
RED
}
Instalando UniFi
${
NC
}
"
echo
-e
"
${
RED
}
Instalando UniFi
${
NC
}
"
install_unifi
install_unifi
echo
-e
"
${
RED
}
Configurando serviço
${
NC
}
"
echo
-e
"
${
RED
}
Configurando serviço
${
NC
}
"
creating_service_unifi
creating_service_unifi
echo
-e
"
${
RED
}
Iniciando Unifi
${
NC
}
"
echo
-e
"
${
RED
}
Iniciando Unifi
${
NC
}
"
starting_service_unifi
starting_service_unifi
echo
-e
"
${
RED
}
Restaurando DB
${
NC
}
"
#
echo -e "${RED}Restaurando DB${NC}"
sleep
15
#
sleep 15
restoring_db
#
restoring_db
echo
-e
"
${
RED
}
Instalação Concluida
${
NC
}
"
echo
-e
"
${
RED
}
Instalação Concluida
${
NC
}
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment