forked from lynnaloo/xtuple-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvagrant_setup.sh
41 lines (33 loc) · 973 Bytes
/
vagrant_setup.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
#!/bin/sh
# fix for error message from Vagrant, but it may still show up
if `tty -s`; then
mesg n
fi
# set xtuple source directory
XTUPLE_DIR=/home/vagrant/dev/xtuple/
PRIVATE_DIR=/home/vagrant/dev/private-extensions
BI_DIR=/home/vagrant/dev/bi
# handy little function from install_script
cdir() {
echo "Changing directory to $1"
cd $1
}
# install git
sudo apt-get install git -y
echo "Git has been installed!"
# this is temporary fix for the problem where Windows
# cannot translate the symlinks in the repository
echo "Changing directory to lib"
cd /home/vagrant/dev/xtuple/lib/
rm module
ln -s ../node_modules/ module
git update-index --assume-unchanged module
echo "Changing directory to application"
cd /home/vagrant/dev/xtuple/enyo-client/application/
rm lib
ln -s ../../lib/ lib
git update-index --assume-unchanged lib
cdir $XTUPLE_DIR
echo "Beginning install script"
bash scripts/install_xtuple.sh
echo "The xTuple install development script is done!"