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
d9cdfbb7
Commit
d9cdfbb7
authored
Nov 01, 2023
by
Joab Bremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jdk17
parent
2201281b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
install_unifi.sh
install_unifi.sh
+13
-5
No files found.
install_unifi.sh
View file @
d9cdfbb7
...
...
@@ -19,7 +19,13 @@ stoping_service(){
}
install_components
(){
#yum -q -y install epel-release java-1.8.0-openjdk unzip wget
yum
-q
-y
install
java-17-openjdk-headless epel-release unzip wget
#yum -q -y install java-17-openjdk-headless epel-release unzip wget
yum
-q
-y
install
epel-release unzip wget
}
install_java
(){
wget http://git.usb.org.br/infra/scripts/raw/master/jdk-17_linux-x64_bin.tar.gz
-P
/usr/lib/jvm/
-q
tar
-xf
/usr/lib/jvm/jdk-17_linux-x64_bin.tar.gz
-C
/usr/lib/jvm
rm
-rf
/usr/lib/jvm/jdk-17_linux-x64_bin.tar.gz
}
configure_mongorepo
(){
cat
>
/etc/yum.repos.d/mongodb-org-5.0.repo
<<
EOF
...
...
@@ -58,12 +64,12 @@ Wants=network-online.target
[Service]
Type=simple
User=u
nifi
User=u
bnt
WorkingDirectory=/usr/share/unifi
EnvironmentFile=-/etc/sysconfig/unifi
Environment=JAVA_HOME=/usr/lib/jvm/j
re-17
ExecStart=/usr/lib/jvm/j
re-17
/bin/java -Xmx1024M --add-opens=java.base/java.time=ALL-UNNAMED
$JAVA_OPTS
-jar /usr/share/unifi/lib/ace.jar start
ExecStop=/usr/lib/jvm/j
re-17
/bin/java
$JAVA_OPTS
-jar /usr/share/unifi/lib/ace.jar stop
Environment=JAVA_HOME=/usr/lib/jvm/j
dk-17.0.9
ExecStart=/usr/lib/jvm/j
dk-17.0.9
/bin/java -Xmx1024M --add-opens=java.base/java.time=ALL-UNNAMED
$JAVA_OPTS
-jar /usr/share/unifi/lib/ace.jar start
ExecStop=/usr/lib/jvm/j
dk-17.0.9
/bin/java
$JAVA_OPTS
-jar /usr/share/unifi/lib/ace.jar stop
SuccessExitStatus=143
Restart=on-success
...
...
@@ -89,6 +95,8 @@ install_components
configure_mongorepo
echo
-e
"
${
RED
}
Instalando MongoDB
${
NC
}
"
install_mongo
echo
-e
"
${
RED
}
Instalando MongoDB
${
NC
}
"
install_java
echo
-e
"
${
RED
}
Criando Usuário
${
NC
}
"
creating_user
echo
-e
"
${
RED
}
Parando UniFi Antigo
${
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