-
Notifications
You must be signed in to change notification settings - Fork 0
/
jumble-sale-install.sh
executable file
·87 lines (73 loc) · 2.42 KB
/
jumble-sale-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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
# ======================================================================================================
# Install mercy base and jumble sale files
# ======================================================================================================
if test -f ".env"; then
if grep -Poq '^APP_KEY=.{3}' .env; then
echo "APP_KEY already set"
exit 1
fi
fi
d="Modules/SystemBase"
[ -d "${d}" ] && {
echo "Directory already exists: $d"
exit 1
}
d="Modules/DeployEnv"
[ -d "${d}" ] && {
echo "Directory already exists: $d"
exit 1
}
echo "Starting installation process ..."
echo "";
echo "======================================";
echo "Clone Git Module SystemBase";
echo "======================================";
git clone https://github.com/aklebe-laravel/system-base-module.git ./Modules/SystemBase
echo "";
echo "======================================";
echo "Clone Git Module DeployEnv";
echo "======================================";
git clone https://github.com/aklebe-laravel/deploy-env-module.git ./Modules/DeployEnv
echo "";
echo "======================================";
echo "Clone Git Theme Bootstrap 5";
echo "======================================";
git clone https://github.com/aklebe-laravel/aklebe-bs5-theme.git ./Themes/aklebe_bs5
echo "";
echo "======================================";
echo "Clone Git Theme JumbleSale";
echo "======================================";
git clone https://github.com/aklebe-laravel/jumble-sale-theme.git ./Themes/jumble_sale
echo "";
echo "======================================";
echo "Copy files";
echo "======================================";
rsync -a -v --ignore-existing resources/mercy-root/ .
echo "";
echo "======================================";
echo "Starting composer update";
echo "======================================";
composer update
echo "";
echo "======================================";
echo "Starting npm update";
echo "======================================";
npm update
echo "";
echo "======================================";
echo "Generating APP KEY";
echo "======================================";
php artisan key:generate
echo "";
echo "======================================";
echo "Creating symbolic link";
echo "======================================";
php artisan storage:link
echo "";
echo "";
echo "Installation process was successfully completed.";
echo "1) Adjust your .env file";
echo "2) Run './ui.sh'";
echo "3) Select [u] for system update";
echo "";