Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-mirrors
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wonko
gitlab-mirrors
Commits
538448e2
Commit
538448e2
authored
11 years ago
by
Sam Gleske
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix for add_mirror.sh updating config sample
parent
166b446c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
add_mirror.sh
+1
-1
1 addition, 1 deletion
add_mirror.sh
config.sh.SAMPLE
+15
-0
15 additions, 0 deletions
config.sh.SAMPLE
with
16 additions
and
1 deletion
add_mirror.sh
+
1
−
1
View file @
538448e2
...
...
@@ -193,7 +193,7 @@ if ${git};then
echo
"Creating mirror from
${
mirror
}
"
cd
"
${
repo_dir
}
/
${
gitlab_namespace
}
"
git clone
--mirror
${
mirror
}
"
${
project_name
}
"
cd
"
$
1
"
cd
"
$
{
project_name
}
"
#add the gitlab remote
echo
"Adding gitlab remote to project."
git remote add gitlab
${
gitlab_remote
}
...
...
This diff is collapsed.
Click to expand it.
config.sh.SAMPLE
+
15
−
0
View file @
538448e2
...
...
@@ -6,8 +6,12 @@
#The user git-mirrors will run as.
system_user="gitmirror"
#The home directory path of the $system_user
user_home="/home/${system_user}"
#The repository directory where gitlab-mirrors will copies of mirrored repositories before pushing them to gitlab.
repo_dir="${user_home}/repositories"
#colorize output of add_mirror.sh, update_mirror.sh, and git-mirrors.sh commands.
enable_colors=true
#
# Gitlab settings
...
...
@@ -21,3 +25,14 @@ gitlab_url="https://gitlab.example.com"
gitlab_user="gitmirror"
#Generate a token for your $gitlab_user and set it here.
gitlab_user_token_secret="$(head -n1 "${user_home}/private_token")"
#
# Gitlab new project default settings. If a project needs to be created by gitlab-mirrors
# then it will assign the following values as defaults.
#
issues_enabled=false
wall_enabled=false
wiki_enabled=false
snippets_enabled=false
public=false
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