forked from Sunbird-Knowlg/sunbird-learning-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvmsetup.sh
More file actions
executable file
·14 lines (14 loc) · 797 Bytes
/
vmsetup.sh
File metadata and controls
executable file
·14 lines (14 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
sudo apt update
sudo apt install redis-server -y
curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.2.deb
sudo dpkg -i elasticsearch-6.3.2.deb
sudo service elasticsearch start
sudo service elasticsearch status
mvn install:install-file -Dfile=./orchestrator/module/interpreter-api/lib/jtcl-2.7.0.jar -DgroupId=tcl.lang -DartifactId=jtcl -Dversion=2.7.0 -Dpackaging=jar
mkdir -p ~/logs/search/
find ./ -type f -name "log4j2.xml" -print0 | xargs -0 sed -i -e 's/\/data\/logs/~\/logs/g'
find ./ -type f -name "logback.xml" -print0 | xargs -0 sed -i -e 's/\/data\/logs/logs/g'
find ./ -type f -name "application.conf" -print0 | xargs -0 sed -i -e 's/\/data\//~\//g'
find ./ -type f -name "*.java" -print0 | xargs -0 sed -i -e 's/\/data\//~\//g'
mvn clean install