Commit b275794c authored by Michel Memeteau's avatar Michel Memeteau

Update utils/provision, install.linux.sh files

parent 0784a884
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment