mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-22 15:55:09 +00:00
fixed issue where if you didnt supply 2nd arg in init it would default
This commit is contained in:
parent
2f7ca23290
commit
4c15279f07
1 changed files with 3 additions and 1 deletions
4
dbench
4
dbench
|
|
@ -27,7 +27,7 @@ function frappe_installer {
|
||||||
echo "$1 added"
|
echo "$1 added"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ $# -eq 0 ]]; then
|
if [[ $# -eq 1 ]]; then
|
||||||
echo "$@"
|
echo "$@"
|
||||||
docker exec -it frappe bash 'bench $@'
|
docker exec -it frappe bash 'bench $@'
|
||||||
|
|
||||||
|
|
@ -38,6 +38,8 @@ elif [ $1 == '--init' ]; then
|
||||||
fi
|
fi
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
site="site1.local"
|
site="site1.local"
|
||||||
|
else
|
||||||
|
site=$2
|
||||||
fi
|
fi
|
||||||
echo "$site"
|
echo "$site"
|
||||||
frappe_installer $site
|
frappe_installer $site
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue