Skip to content
Snippets Groups Projects

Resolve "REPO mode to retrieve application recipe"

Merged Michel Memeteau requested to merge 187-repo-mode-to-retrieve-application-recipe into develop
Files
2
+ 11
1
@@ -103,7 +103,17 @@ function buy_domain_name () {
@@ -103,7 +103,17 @@ function buy_domain_name () {
}
}
function application () {
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}
cd /data/domains/${arg_u}
if [ -f ./scripts/install ]; then
if [ -f ./scripts/install ]; then
export URL=${arg_u}
export URL=${arg_u}
Loading