Update utils/provision, install.linux.sh files
This commit is contained in:
parent
0784a88498
commit
b275794ca6
2 changed files with 13 additions and 3 deletions
|
@ -6,9 +6,9 @@ LIBRE_VERSION=1.1
|
|||
|
||||
## domain handling
|
||||
|
||||
### TODO : Specify you template repo ROOT
|
||||
### TODO : Specify you template repo ROOT without training slash
|
||||
|
||||
TEMPLATES_ROOT=lab.libreho.st/libre.sh/compose/
|
||||
APP_REPO_URL=lab.libreho.st/libre.sh/compose
|
||||
|
||||
### TODO : change to your domain vendor ( ovh , online, )
|
||||
DOMAIN_SERVER=namecheap
|
||||
|
|
|
@ -103,7 +103,17 @@ function buy_domain_name () {
|
|||
}
|
||||
|
||||
function application () {
|
||||
git clone https://${arg_a}.git /data/domains/${arg_u}
|
||||
#We check if a APP_REPO_URL was specified
|
||||
|
||||
if[ -z ${APP_REPO_URL:-} ]; then
|
||||
warning "NO repo URL specified, using argument as full URL"
|
||||
git_url=https://${arg_a}.git
|
||||
else
|
||||
warning "REPO specified, using argument as app name"
|
||||
git_url=https://${APP_REPO_URL}/${arg_a}.git
|
||||
fi
|
||||
|
||||
git clone ${git_url} /data/domains/${arg_u}
|
||||
cd /data/domains/${arg_u}
|
||||
if [ -f ./scripts/install ]; then
|
||||
export URL=${arg_u}
|
||||
|
|
Loading…
Reference in a new issue