Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libre.sh
compose.libre.sh
Commits
491587ee
Commit
491587ee
authored
5 years ago
by
Michel Memeteau
Browse files
Options
Downloads
Patches
Plain Diff
add -t param to provision clone + param check
parent
62e5a61c
No related branches found
No related tags found
1 merge request
!185
Resolve "Handle git branches when provisioning"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/provision
+4
-1
4 additions, 1 deletion
utils/provision
with
4 additions
and
1 deletion
utils/provision
+
4
−
1
View file @
491587ee
...
...
@@ -32,6 +32,7 @@ read -r -d '' usage <<-'EOF'
-i Configure OpenDKIM.
-c Configures DNS on Namecheap.
-d Enables debug mode
-t Checkout a specific tag or branch
-h This page
EOF
...
...
@@ -103,7 +104,7 @@ function buy_domain_name () {
}
function
application
()
{
git clone https://
${
arg_a
}
.git /data/domains/
${
arg_u
}
git clone https://
${
arg_a
}
.git /data/domains/
${
arg_u
}
-t
${
arg_t
}
cd
/data/domains/
${
arg_u
}
if
[
-f
./scripts/install
]
;
then
export
URL
=
${
arg_u
}
...
...
@@ -201,6 +202,8 @@ fi
[
-z
"
${
arg_u
}
"
]
&&
help
"URL is required."
[
-z
"
${
LOG_LEVEL
}
"
]
&&
emergency
"Cannot continue without LOG_LEVEL."
# tags/branch for modules
[
-z
"
${
arg_t
}
"
]
&&
arg_t
=
master
### Runtime
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment