-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
36 lines (32 loc) · 1.01 KB
/
install.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
echo ''
echo '.......................<( ConfMS )>.....................'
echo 'This script will install composer and yarn reqs for you!'
echo '.......................<( ConfMS )>.....................'
echo ''
( cd serwer && composer install --no-scripts --ignore-platform-reqs )
( cd client && yarn install )
service mongod start && echo 'Mongod started'
sudo lsof -t -i tcp:80 -s tcp:listen | sudo xargs kill
service nginx start && echo 'Nginx started'
usage()
{
echo "usage: ./install.sh "
echo "--new Clears the database "
echo "--init Install Additional packages."
}
while [ "$1" != "" ]; do
case $1 in
-n | --new )
( cd e2e-tests/MongoScripts/ && python3 clear_database.py)
;;
-i | --init )
( cd e2e-tests && sudo ./init.sh )
;;
-h | --help ) usage
exit
;;
* ) usage
exit 1
esac
shift
done