Skip to content
Snippets Groups Projects
Commit e8d18d6d authored by jez04's avatar jez04
Browse files

fix

parent 375adb41
No related merge requests found
......@@ -216,14 +216,15 @@ function addModule(){
}
function createRunScript(){
cat <<EOF | sudo tee /opt/wildfly-20/bin/standalone-student.sh > /dev/null
cat <<EOF | sudo tee /opt/wildfly-24/bin/standalone-student.sh > /dev/null
#!/bin/bash
WILDFLY_DIR=\$HOME/.wildfly
if [ ! -d \"\$WILDFLY_DIR\" ]; then
mkdir -p \$WILDFLY_DIR/configuration
mkdir -p \$WILDFLY_DIR/content
mkdir -p \$WILDFLY_DIR/data
mkdir -p \$WILDFLY_DIR/deployments
mkdir -p \$WILDFLY_DIR/deploymentsAaa
mkdir -p \$WILDFLY_DIR/log
cp /opt/wildfly-24/standalone/configuration/* \$WILDFLY_DIR/configuration/
fi
......@@ -446,7 +447,7 @@ function uninstallTomcat(){
function installTomEE(){
echo '============>Installing TomEE .....==========================================================================================================='
downloadAndExtract /opt apache-tomee-8.0.0-M7-plume.tar.gz apache-tomee-plume-8.0.0-M7 apache-tomee-plume-8 https://dlcdn.apache.org/tomee/tomee-9.0.0-M7/apache-tomee-9.0.0-M7-plume.tar.gz
downloadAndExtract /opt apache-tomee-9.0.0-M7-plume.tar.gz apache-tomee-plume-9.0.0-M7 apache-tomee-plume-9 https://dlcdn.apache.org/tomee/tomee-9.0.0-M7/apache-tomee-9.0.0-M7-plume.tar.gz
setupBase
cat <<EOF | sudo tee /etc/profile.d/tomee.sh > /dev/null
......@@ -459,7 +460,7 @@ if [ ! -d "\$CATALINA_BASE_EE" ]; then
mkdir -p \$CATALINA_BASE_EE/webapps
mkdir -p \$CATALINA_BASE_EE/work
mkdir -p \$CATALINA_BASE_EE/temp
cp /opt/apache-tomee-plume-8/conf/* \$CATALINA_BASE_EE/conf
cp /opt/apache-tomee-plume-9/conf/* \$CATALINA_BASE_EE/conf
fi
EOF
echo '============>TomEE installed.==========================================================================================================='
......@@ -475,11 +476,11 @@ function uninstallTomEE(){
function installGecko(){
echo '============>Installing GeckoDriver .....==========================================================================================================='
wget https://github.com/mozilla/geckodriver/releases/download/v0.29.1/geckodriver-v0.29.1-linux64.tar.gz
sudo tar -xz -C /usr/bin -f geckodriver-v0.29.0-linux64.tar.gz
sudo tar -xz -C /usr/bin -f geckodriver-v0.29.1-linux64.tar.gz
sudo chown root:root /usr/bin/geckodriver
sudo chmod +x /usr/bin/geckodriver
sudo chmod g-w /usr/bin/geckodriver
rm geckodriver-v0.29.0-linux64.tar.gz
rm geckodriver-v0.29.1-linux64.tar.gz
echo '============>GeckoDriver installed.==========================================================================================================='
}
......@@ -617,7 +618,7 @@ function installAndroidStudio(){
downloadAndExtract /opt android-studio-2020.3.1.24-linux.tar.gz android-studio android-studio-2020 https://r6---sn-2gb7sn7s.gvt1.com/edgedl/android/studio/ide-zips/2020.3.1.24/android-studio-2020.3.1.24-linux.tar.gz
setupBase
cat <<EOF | sudo tee /opt/android-studio-4.0.1/bin/studio-student.sh > /dev/null
cat <<EOF | sudo tee /opt/android-studio-2020/bin/studio-student.sh > /dev/null
#create default user setting for tomcat
export ANDROID_SDK_ROOT=$LOCALHD/android-sdk-root
/opt/android-studio-2020/bin/studio.sh
......@@ -805,9 +806,9 @@ function upgrade2021(){
installIdea
uninstallTomcat
installTomcat
# installTomcat
uninstallTomEE
# installTomEE
installTomEE
uninstallWildfly
installWildfly
uninstallAppacheDerby
......
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