mirror of
https://hk.gh-proxy.com/https://github.com/WordPressUtilities/WPUInstaller.git
synced 2025-08-18 08:11:11 +08:00
50 lines
1.2 KiB
Bash
50 lines
1.2 KiB
Bash
#!/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}";
|