-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart.sh
50 lines (44 loc) · 1.17 KB
/
start.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
#!/bin/bash
MAINDIR="${PWD}/";
SCRIPTDIR="$( dirname "${BASH_SOURCE[0]}" )/";
export PATH=$PATH:/Applications/MAMP/Library/bin/
if [[ -f "${SCRIPTDIR}local.sh" ]];then
. "${SCRIPTDIR}local.sh";
fi
if [[ -f "wpuinstaller-tpl.sh" ]];then
. "wpuinstaller-tpl.sh";
fi
if [[ -f "../wpuinstaller-tpl.sh" ]];then
. "../wpuinstaller-tpl.sh";
fi
. "${SCRIPTDIR}bin/functions.sh";
. "${SCRIPTDIR}BashUtilities/bashutilities.sh";
. "${SCRIPTDIR}bin/vars.sh";
. "${SCRIPTDIR}bin/questions.sh";
. "${SCRIPTDIR}bin/install-template.sh";
if [[ "${_website_access}" != '1' ]]; then
return 0;
fi;
if [[ "${_mysql_access_ok}" != '1' ]]; then
return 0;
fi;
. "${SCRIPTDIR}bin/git.sh";
. "${SCRIPTDIR}bin/wpcli.sh";
. "${SCRIPTDIR}bin/wp.sh";
. "${SCRIPTDIR}bin/wpu.sh";
if [[ "${need_theme}" == 'y' ]];then
. "${SCRIPTDIR}bin/theme.sh";
fi;
. "${SCRIPTDIR}bin/mu.sh";
. "${SCRIPTDIR}bin/plugins.sh";
. "${SCRIPTDIR}bin/shell.sh";
. "${SCRIPTDIR}bin/htaccess.sh";
. "${SCRIPTDIR}bin/clean.sh";
if [[ "${use_intestarter}" == 'y' ]];then
. "${SCRIPTDIR}bin/intestarter.sh";
fi;
echo '### Success';
if [[ "${need_theme}" == 'y' ]];then
cd "${WPU_THEME}";
fi;
open "${project_dev_url}";