-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrunComposer.sh
40 lines (29 loc) · 1.13 KB
/
runComposer.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
#!/bin/bash
if [ -z "$1" ]; then
echo "run 'Composer require' to install a new package into your project"
echo "usage: $0 directory packagename"
exit
fi
if [ "$1" = "plan" ]; then
echo '--------------------------------------------------------- Updating plan.eec.ie'
cd /var/www/eec.ie/html/church/plan/
pwd
if ! [ -z "$2" ]; then
echo '-------------------------------------------------------------------------------'
echo "installing the required package $2 via Composer:"
composer require "$2"
echo '-------------------------------------------------------------------------------'
fi
echo
echo '------------------------------------------------------- Updating c-spot.cu.cc'
cd /var/www/c-spot.cu.cc/html/cSpot/
pwd
if ! [ -z "$2" ]; then
echo '-------------------------------------------------------------------------------'
echo "installing the required package $2 via Composer:"
composer require "$2"
echo '-------------------------------------------------------------------------------'
fi
exit
fi
echo $1 not yet implemented