-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgitpull.sh
58 lines (35 loc) · 1.22 KB
/
gitpull.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
58
#!/bin/bash
if [ -z "$1" ]; then
echo Running migrations and optionally installing Composer packages
echo usage: $0 directory
exit
fi
echo ' '
echo "restarting the queue workers"
supervisorctl restart all
if [ "$1" = "plan" ]; then
echo 'Updating plan.eec.ie'
cd /var/www/eec.ie/html/church/plan/
pwd
if ! [ -z "$2" ]; then
echo '-------------------------------------------------------------------------------'
echo "But first, we are installing the required package $2 via Composer:"
composer require "$2"
echo '-------------------------------------------------------------------------------'
fi
php artisan migrate
echo
echo '------------------------------------------------------- Updating c-spot.cu.cc'
cd /var/www/c-spot.cu.cc/html/cSpot/
pwd
if ! [ -z "$2" ]; then
echo '-------------------------------------------------------------------------------'
echo "But first, we are installing the required package $2 via Composer:"
composer require "$2"
echo '-------------------------------------------------------------------------------'
fi
php artisan migrate
echo
exit
fi
echo $1 not yet implemented