2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

make setup bench optional

This commit is contained in:
Pratik Vyas 2015-01-01 11:41:50 +05:30
parent b551922341
commit e63fd780bf

View File

@ -16,7 +16,7 @@ get_passwd() {
} }
set_opts () { set_opts () {
OPTS=`getopt -o v --long verbose,mysql-root-password:,frappe-user:,setup-production,help -n 'parse-options' -- "$@"` OPTS=`getopt -o v --long verbose,mysql-root-password:,frappe-user:,setup-production,skip-setup-bench,help -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi
@ -30,6 +30,7 @@ set_opts () {
MSQ_PASS=`get_passwd` MSQ_PASS=`get_passwd`
ADMIN_PASS=`get_passwd` ADMIN_PASS=`get_passwd`
SETUP_PROD=false SETUP_PROD=false
SETUP_BENCH=true
while true; do while true; do
case "$1" in case "$1" in
@ -39,6 +40,7 @@ set_opts () {
--frappe-user ) FRAPPE_USER="$2"; shift; shift ;; --frappe-user ) FRAPPE_USER="$2"; shift; shift ;;
--setup-production ) SETUP_PROD=true; shift;; --setup-production ) SETUP_PROD=true; shift;;
--bench-branch ) BENCH_BRANCH="$2"; shift;; --bench-branch ) BENCH_BRANCH="$2"; shift;;
--skip-setup-bench ) SETUP_BENCH=false; shift;;
-- ) shift; break ;; -- ) shift; break ;;
* ) break ;; * ) break ;;
esac esac
@ -384,7 +386,9 @@ main() {
echo "Adding frappe user" echo "Adding frappe user"
add_user add_user
install_bench install_bench
if $SETUP_BENCH; then
setup_bench setup_bench
fi
echo echo
RUNNING="" RUNNING=""