redmine_with_git 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/000_dependencies.rb +1 -1
- data/installer/tasks/gitolite_rc.sh +1 -1
- data/installer/tasks/redmine_git_hosting_settings.sh +1 -1
- data/installer/tasks/redmine_gitolite_sudoer.sh +2 -2
- data/installer/tasks/redmine_with_git_bundle_requirements.sh +1 -1
- data/installer/template/redmine_git_hosting_setting_value.sql +10 -10
- data/installer/template/redmine_user_sudoer +5 -5
- data/lib/redmine_with_git/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f3e0e1b33ddb8a2aacf89e2f9cda8dc920fa104a1f30b44b36b3ad8fb712b77
|
4
|
+
data.tar.gz: 5027e58b2d22bde3d0041616cd4d67b81365e6ff7ee9f7f16e6f2b223ef8a200
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 398703449480c9bec9ca04f2ab41e4a5b203644ac6ae8ae863626e9dce61a7ffe929076fecaf04644b3425710796f688edadd96b4a057c90462d24b5ab0e337c
|
7
|
+
data.tar.gz: 2a1322e8c79db485a40233b55d6ec3fa8d0326ca993b71146b3de7dbc2c3734f1ef7236509d691f4b842b8f8270d6a81da9ebe25b018f0325e05b43cf0b00438
|
@@ -20,6 +20,6 @@ Redmine::Plugin.post_register :redmine_with_git do
|
|
20
20
|
|
21
21
|
# Source: https://github.com/esquilo-azul/redmine_installer
|
22
22
|
if ::Redmine::Plugin.registered_plugins.keys.include?(:redmine_installer)
|
23
|
-
requires_redmine_plugin(:redmine_installer, version_or_higher: '0.
|
23
|
+
requires_redmine_plugin(:redmine_installer, version_or_higher: '0.18.0')
|
24
24
|
end
|
25
25
|
end
|
@@ -6,7 +6,7 @@ set -e
|
|
6
6
|
gitolite_rc_file="$gitolite_user_home/.gitolite.rc"
|
7
7
|
|
8
8
|
function gitolite_rc_template {
|
9
|
-
|
9
|
+
template_apply "${REDMINE_WITH_GIT_TEMPLATE_ROOT}/gitolite.rc"
|
10
10
|
}
|
11
11
|
|
12
12
|
function task_dependencies {
|
@@ -5,7 +5,7 @@ set -e
|
|
5
5
|
|
6
6
|
function redmine_git_hosting_setting_template {
|
7
7
|
export redmine_git_hosting_ssh_key=$(programeiro /redmine_git_hosting/ssh_key)
|
8
|
-
|
8
|
+
template_apply "${REDMINE_WITH_GIT_TEMPLATE_ROOT}/redmine_git_hosting_setting_value.sql" -
|
9
9
|
}
|
10
10
|
export -f redmine_git_hosting_setting_template
|
11
11
|
|
@@ -29,7 +29,7 @@ function task_condition {
|
|
29
29
|
fi
|
30
30
|
export rails_user="$(programeiro /rails/user)"
|
31
31
|
SUDOERS_FILE_COPY="$(sudoers_file_copy_file)"
|
32
|
-
result=$(
|
32
|
+
result=$(template_apply "${REDMINE_WITH_GIT_TEMPLATE_ROOT}/redmine_user_sudoer" | programeiro /text/diff_stdin_file "$SUDOERS_FILE_COPY")
|
33
33
|
sudo rm -f "$SUDOERS_FILE_COPY"
|
34
34
|
if [ "$result" != '0' ]; then
|
35
35
|
return 1
|
@@ -44,7 +44,7 @@ function task_fix {
|
|
44
44
|
set -u
|
45
45
|
set -e
|
46
46
|
export rails_user="$(programeiro /rails/user)"
|
47
|
-
|
47
|
+
template_apply "$REDMINE_WITH_GIT_TEMPLATE_ROOT/redmine_user_sudoer" | \
|
48
48
|
programeiro /linux/sudo_write "$SUDOER_FILE"
|
49
49
|
}
|
50
50
|
export -f task_fix
|
@@ -15,7 +15,7 @@ gitolite_flush_cache: 'false'
|
|
15
15
|
gitolite_global_storage_dir: repositories/
|
16
16
|
gitolite_hooks_are_asynchronous: 'false'
|
17
17
|
gitolite_hooks_debug: 'false'
|
18
|
-
gitolite_hooks_url: "
|
18
|
+
gitolite_hooks_url: "%%address_scheme%%://%%address_authority%%%%address_path%%"
|
19
19
|
gitolite_http_by_default: '1'
|
20
20
|
gitolite_identifier_prefix: redmine_
|
21
21
|
gitolite_identifier_strip_user_id: 'false'
|
@@ -36,18 +36,18 @@ gitolite_resync_all_ssh_keys: 'false'
|
|
36
36
|
gitolite_scripts_dir: ''
|
37
37
|
gitolite_server_host: 127.0.0.1
|
38
38
|
gitolite_server_port: '22'
|
39
|
-
gitolite_ssh_private_key: "
|
40
|
-
gitolite_ssh_public_key: "
|
41
|
-
gitolite_temp_dir: "/tmp/redmine_git_hosting_
|
39
|
+
gitolite_ssh_private_key: "%%redmine_git_hosting_ssh_key%%"
|
40
|
+
gitolite_ssh_public_key: "%%redmine_git_hosting_ssh_key%%.pub"
|
41
|
+
gitolite_temp_dir: "/tmp/redmine_git_hosting_%%gitolite_user%%/"
|
42
42
|
gitolite_timeout: '10'
|
43
|
-
gitolite_user:
|
43
|
+
gitolite_user: %%gitolite_user%%
|
44
44
|
gitolite_use_sidekiq: 'false'
|
45
|
-
hierarchical_organisation: '
|
46
|
-
http_server_domain:
|
45
|
+
hierarchical_organisation: '%%git_repositories_hierarchical_organisation%%'
|
46
|
+
http_server_domain: %%address_authority%%
|
47
47
|
http_server_subdir: ''
|
48
|
-
https_server_domain:
|
48
|
+
https_server_domain: %%address_authority%%
|
49
49
|
init_repositories_on_create: 'false'
|
50
50
|
redmine_has_rw_access_on_all_repos: 'true'
|
51
51
|
show_repositories_url: 'true'
|
52
|
-
ssh_server_domain:
|
53
|
-
unique_repo_identifier: '
|
52
|
+
ssh_server_domain: %%address_host%%
|
53
|
+
unique_repo_identifier: '%%git_repositories_unique_repo_identifier%%'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Defaults:redmine !requiretty
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
%%rails_user%% ALL=(%%gitolite_user%%) NOPASSWD:ALL
|
3
|
+
%%rails_user%% ALL=(root) NOPASSWD:/usr/bin/stat
|
4
|
+
%%rails_user%% ALL=(root) NOPASSWD:/bin/cp %%SUDOER_FILE%% %%SUDOER_TMP_FILE%%
|
5
|
+
%%rails_user%% ALL=(root) NOPASSWD:/bin/chmod og+r %%SUDOER_TMP_FILE%%
|
6
|
+
%%rails_user%% ALL=(root) NOPASSWD:/bin/rm -f %%SUDOER_TMP_FILE%%
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_with_git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|