forked from tbartsch-eu/GUI-for-Hybrid-Simulator-Testbed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovision.sh
executable file
·57 lines (52 loc) · 1.67 KB
/
provision.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
#######################
#
# This is a provision script
# it will be called once when the vagrant vm is first provisioned
# If you have commands that you want to run always please have a
# look at the bootstrap.sh script
#
# Contributor: Jonas Bender, Bernhard Blieninger, Tobias Bartsch
######################
if [ $USER == "ubuntu" ] || [ $USER == "vagrant" ]; then
cd /vagrant
sudo apt-get update
sudo apt-get install -qq make
fi
bash scripts/initialize-submodules.sh
bash scripts/install-packages.sh
#wahrsch build error
bash scripts/build-app.sh
bash scripts/install-mysql.sh
#TODO: Legacy Code might be deleted in the future
#if [ $USER == "ubuntu" ] || [ $USER == "vagrant" ]; then
# cd /vagrant
# # uncomment the following line if you want to 'visually' access the virtual machine
# #sudo apt-get install -qq alsa-base alsa-utils pulseaudio pulseaudio-utils ubuntu-desktop
# sudo apt-get update
# sudo apt-get install -qq make
# #make packages
#fi
#
## initialize and update submodules
#git submodule update --init
#
##install application
##sudo apt-get install -qq ng
#sudo apt-get install -qq npm
#npm install
#
##deploy app binary
#sudo npm install -g @angular/cli
##sudo npm install -g n
##sudo n stable
#npm run electron:linux
#
##install mysql
#sudo apt-get install -qq mysql-server
#sudo mysql -e "use mysql; update user set authentication_string=password(''),plugin='mysql_native_password' where user='root';flush privileges;"
#sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/mysql.conf.d/mysqld.cnf
#cd /vagrant/src/app
#/vagrant/node_modules/.bin/sequelize db:create
#/vagrant/node_modules/.bin/sequelize db:migrate
#/vagrant/node_modules/.bin/sequelize db:seed:all